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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "LayerChromium.h" | 7 #include "LayerChromium.h" |
8 | 8 |
9 #include "CCGeometryTestUtils.h" | 9 #include "CCGeometryTestUtils.h" |
10 #include "CCKeyframedAnimationCurve.h" | 10 #include "CCKeyframedAnimationCurve.h" |
11 #include "CCLayerImpl.h" | 11 #include "CCLayerImpl.h" |
12 #include "CCLayerTreeHost.h" | 12 #include "CCLayerTreeHost.h" |
13 #include "CCSingleThreadProxy.h" | 13 #include "CCSingleThreadProxy.h" |
14 #include "FakeCCLayerTreeHostClient.h" | 14 #include "FakeCCLayerTreeHostClient.h" |
15 #include "LayerPainterChromium.h" | 15 #include "LayerPainterChromium.h" |
16 #include "WebCompositorInitializer.h" | 16 #include "WebCompositorInitializer.h" |
17 #include <gmock/gmock.h> | 17 #include <gmock/gmock.h> |
18 #include <gtest/gtest.h> | 18 #include <gtest/gtest.h> |
19 #include <public/WebTransformationMatrix.h> | 19 #include <public/WebTransformationMatrix.h> |
20 | 20 |
21 using namespace WebCore; | 21 using namespace cc; |
22 using namespace WebKitTests; | 22 using namespace WebKitTests; |
23 using WebKit::WebTransformationMatrix; | 23 using WebKit::WebTransformationMatrix; |
24 using ::testing::Mock; | 24 using ::testing::Mock; |
25 using ::testing::_; | 25 using ::testing::_; |
26 using ::testing::AtLeast; | 26 using ::testing::AtLeast; |
27 using ::testing::AnyNumber; | 27 using ::testing::AnyNumber; |
28 | 28 |
29 #define EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(numTimesExpectedSetNeedsCom
mit, codeToTest) do { \ | 29 #define EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(numTimesExpectedSetNeedsCom
mit, codeToTest) do { \ |
30 EXPECT_CALL(*m_layerTreeHost, setNeedsCommit()).Times((numTimesExpectedS
etNeedsCommit)); \ | 30 EXPECT_CALL(*m_layerTreeHost, setNeedsCommit()).Times((numTimesExpectedS
etNeedsCommit)); \ |
31 codeToTest;
\ | 31 codeToTest;
\ |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 RefPtr<MockLayerChromium> layer(adoptRef(new MockLayerChromium)); | 838 RefPtr<MockLayerChromium> layer(adoptRef(new MockLayerChromium)); |
839 EXPECT_FALSE(layer->needsDisplay()); | 839 EXPECT_FALSE(layer->needsDisplay()); |
840 layer->setBounds(IntSize(0, 10)); | 840 layer->setBounds(IntSize(0, 10)); |
841 EXPECT_FALSE(layer->needsDisplay()); | 841 EXPECT_FALSE(layer->needsDisplay()); |
842 layer->setBounds(IntSize(10, 10)); | 842 layer->setBounds(IntSize(10, 10)); |
843 EXPECT_TRUE(layer->needsDisplay()); | 843 EXPECT_TRUE(layer->needsDisplay()); |
844 } | 844 } |
845 | 845 |
846 | 846 |
847 } // namespace | 847 } // namespace |
OLD | NEW |