| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ |
| 6 #define CC_TEST_LAYER_TEST_COMMON_H_ | 6 #define CC_TEST_LAYER_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <utility> | 10 #include <utility> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "cc/quads/render_pass.h" | 13 #include "cc/quads/render_pass.h" |
| 13 #include "cc/test/fake_layer_tree_host.h" | 14 #include "cc/test/fake_layer_tree_host.h" |
| 14 #include "cc/test/test_task_graph_runner.h" | 15 #include "cc/test/test_task_graph_runner.h" |
| 15 #include "cc/trees/layer_tree_host_impl.h" | 16 #include "cc/trees/layer_tree_host_impl.h" |
| 16 | 17 |
| 17 #define EXPECT_SET_NEEDS_COMMIT(expect, code_to_test) \ | 18 #define EXPECT_SET_NEEDS_COMMIT(expect, code_to_test) \ |
| 18 do { \ | 19 do { \ |
| 19 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times((expect)); \ | 20 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times((expect)); \ |
| 20 code_to_test; \ | 21 code_to_test; \ |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 scoped_ptr<FakeLayerTreeHost> host_; | 157 scoped_ptr<FakeLayerTreeHost> host_; |
| 157 scoped_ptr<LayerImpl> root_layer_impl_; | 158 scoped_ptr<LayerImpl> root_layer_impl_; |
| 158 scoped_ptr<RenderPass> render_pass_; | 159 scoped_ptr<RenderPass> render_pass_; |
| 159 int layer_impl_id_; | 160 int layer_impl_id_; |
| 160 }; | 161 }; |
| 161 }; | 162 }; |
| 162 | 163 |
| 163 } // namespace cc | 164 } // namespace cc |
| 164 | 165 |
| 165 #endif // CC_TEST_LAYER_TEST_COMMON_H_ | 166 #endif // CC_TEST_LAYER_TEST_COMMON_H_ |
| OLD | NEW |