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)); \
11 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
14 namespace gfx
{ class Rect
; }
19 class LayerTestCommon
{
21 static const char* quad_string
;
23 static void VerifyQuadsExactlyCoverRect(const cc::QuadList
& quads
,
29 #endif // CC_TEST_LAYER_TEST_COMMON_H_