Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / cc / test / layer_test_common.h
blob94e2f2a9824907eacac6363fe5b9ad45f6d77bfd
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_
6 #define CC_TEST_LAYER_TEST_COMMON_H_
8 #define EXPECT_SET_NEEDS_COMMIT(expect, code_to_test) do { \
9 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times((expect)); \
10 code_to_test; \
11 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
12 } while (false)
14 namespace gfx { class Rect; }
16 namespace cc {
17 class QuadList;
19 class LayerTestCommon {
20 public:
21 static const char* quad_string;
23 static void VerifyQuadsExactlyCoverRect(const cc::QuadList& quads,
24 gfx::Rect rect);
27 } // namespace cc
29 #endif // CC_TEST_LAYER_TEST_COMMON_H_