| 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 <public/WebLayer.h> | 5 #include "cc/test/compositor_fake_web_graphics_context_3d.h" |
| 6 | |
| 7 #include "cc/thread.h" | 6 #include "cc/thread.h" |
| 8 #include "cc/test/compositor_fake_web_graphics_context_3d.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "web_layer_impl.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayer.h" |
| 10 #include "web_layer_tree_view_impl.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClie
nt.h" |
| 11 #include "web_layer_tree_view_test_common.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayer.h" |
| 12 #include <public/WebContentLayer.h> | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
| 13 #include <public/WebContentLayerClient.h> | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| 14 #include <public/WebExternalTextureLayer.h> | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
| 15 #include <public/WebFloatPoint.h> | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerScrollClien
t.h" |
| 16 #include <public/WebFloatRect.h> | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
| 17 #include <public/WebLayerScrollClient.h> | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli
ent.h" |
| 18 #include <public/WebLayerTreeView.h> | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
| 19 #include <public/WebLayerTreeViewClient.h> | 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 20 #include <public/WebRect.h> | 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebSolidColorLayer.
h" |
| 21 #include <public/WebSize.h> | 20 #include "webkit/compositor_bindings/test/web_layer_tree_view_test_common.h" |
| 22 #include <public/WebSolidColorLayer.h> | 21 #include "webkit/compositor_bindings/web_layer_impl.h" |
| 23 | 22 #include "webkit/compositor_bindings/web_layer_tree_view_impl.h" |
| 24 #include <gmock/gmock.h> | |
| 25 | 23 |
| 26 using namespace WebKit; | 24 using namespace WebKit; |
| 27 using testing::AnyNumber; | 25 using testing::AnyNumber; |
| 28 using testing::AtLeast; | 26 using testing::AtLeast; |
| 29 using testing::Mock; | 27 using testing::Mock; |
| 30 using testing::Test; | 28 using testing::Test; |
| 31 using testing::_; | 29 using testing::_; |
| 32 | 30 |
| 33 namespace { | 31 namespace { |
| 34 | 32 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 Mock::VerifyAndClearExpectations(&scrollClient); | 183 Mock::VerifyAndClearExpectations(&scrollClient); |
| 186 | 184 |
| 187 EXPECT_CALL(scrollClient, didScroll()).Times(0); | 185 EXPECT_CALL(scrollClient, didScroll()).Times(0); |
| 188 m_rootLayer->setScrollPosition(WebPoint(14, 19)); | 186 m_rootLayer->setScrollPosition(WebPoint(14, 19)); |
| 189 Mock::VerifyAndClearExpectations(&scrollClient); | 187 Mock::VerifyAndClearExpectations(&scrollClient); |
| 190 | 188 |
| 191 m_rootLayer->setScrollClient(0); | 189 m_rootLayer->setScrollClient(0); |
| 192 } | 190 } |
| 193 | 191 |
| 194 } | 192 } |
| OLD | NEW |