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) \
10 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times((expect)); \
12 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
15 #define EXPECT_SET_NEEDS_UPDATE(expect, code_to_test) \
17 EXPECT_CALL(*layer_tree_host_, SetNeedsUpdateLayers()).Times((expect)); \
19 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
22 namespace gfx
{ class Rect
; }
27 class LayerTestCommon
{
29 static const char* quad_string
;
31 static void VerifyQuadsExactlyCoverRect(const cc::QuadList
& quads
,
37 #endif // CC_TEST_LAYER_TEST_COMMON_H_