OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #include "cc/layer_tree_host_impl.h" | 5 #include "cc/layer_tree_host_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 MOCK_METHOD0(getRequestableExtensionsCHROMIUM, WebKit::WebString()); | 2173 MOCK_METHOD0(getRequestableExtensionsCHROMIUM, WebKit::WebString()); |
2174 MOCK_METHOD1(enable, void(WebKit::WGC3Denum cap)); | 2174 MOCK_METHOD1(enable, void(WebKit::WGC3Denum cap)); |
2175 MOCK_METHOD1(disable, void(WebKit::WGC3Denum cap)); | 2175 MOCK_METHOD1(disable, void(WebKit::WGC3Denum cap)); |
2176 MOCK_METHOD4(scissor, void(WebKit::WGC3Dint x, WebKit::WGC3Dint y, WebKit::W
GC3Dsizei width, WebKit::WGC3Dsizei height)); | 2176 MOCK_METHOD4(scissor, void(WebKit::WGC3Dint x, WebKit::WGC3Dint y, WebKit::W
GC3Dsizei width, WebKit::WGC3Dsizei height)); |
2177 }; | 2177 }; |
2178 | 2178 |
2179 class MockContextHarness { | 2179 class MockContextHarness { |
2180 private: | 2180 private: |
2181 MockContext* m_context; | 2181 MockContext* m_context; |
2182 public: | 2182 public: |
2183 MockContextHarness(MockContext* context) | 2183 explicit MockContextHarness(MockContext* context) |
2184 : m_context(context) | 2184 : m_context(context) |
2185 { | 2185 { |
2186 // Catch "uninteresting" calls | 2186 // Catch "uninteresting" calls |
2187 EXPECT_CALL(*m_context, useProgram(_)) | 2187 EXPECT_CALL(*m_context, useProgram(_)) |
2188 .Times(0); | 2188 .Times(0); |
2189 | 2189 |
2190 EXPECT_CALL(*m_context, drawElements(_, _, _, _)) | 2190 EXPECT_CALL(*m_context, drawElements(_, _, _, _)) |
2191 .Times(0); | 2191 .Times(0); |
2192 | 2192 |
2193 // These are not asserted | 2193 // These are not asserted |
(...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4340 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize()); | 4340 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize()); |
4341 drawFrameAndTestDamage(noDamage); | 4341 drawFrameAndTestDamage(noDamage); |
4342 } | 4342 } |
4343 | 4343 |
4344 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, | 4344 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, |
4345 LayerTreeHostImplTest, | 4345 LayerTreeHostImplTest, |
4346 ::testing::Values(false, true)); | 4346 ::testing::Values(false, true)); |
4347 | 4347 |
4348 } // namespace | 4348 } // namespace |
4349 } // namespace cc | 4349 } // namespace cc |
OLD | NEW |