Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1696)

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2174653002: cc: Break up with FakeLayerTreeHostClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeoutputsurface
Patch Set: lthclient-tests: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index d20f6a1c21fdc06bcc3bd3319082871671155aee..1a80b597406ab22d53957a835cda6fc3139b5c04 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -26,6 +26,7 @@
#include "cc/test/fake_recording_source.h"
#include "cc/test/layer_tree_settings_for_testing.h"
#include "cc/test/skia_common.h"
+#include "cc/test/stub_layer_tree_host_single_thread_client.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/single_thread_proxy.h"
@@ -467,6 +468,7 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
settings.verify_clip_tree_calculations = true;
settings.verify_transform_tree_calculations = true;
+ StubLayerTreeHostSingleThreadClient single_thread_client;
FakeLayerTreeHostClient host_client1;
FakeLayerTreeHostClient host_client2;
TestSharedBitmapManager shared_bitmap_manager;
@@ -483,7 +485,7 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
params.animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
std::unique_ptr<LayerTreeHost> host1 =
- LayerTreeHost::CreateSingleThreaded(&host_client1, &params);
+ LayerTreeHost::CreateSingleThreaded(&single_thread_client, &params);
host1->SetVisible(true);
host_client1.SetLayerTreeHost(host1.get());
@@ -498,7 +500,7 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
params2.animation_host =
AnimationHost::CreateForTesting(ThreadInstance::MAIN);
std::unique_ptr<LayerTreeHost> host2 =
- LayerTreeHost::CreateSingleThreaded(&host_client2, &params2);
+ LayerTreeHost::CreateSingleThreaded(&single_thread_client, &params2);
host2->SetVisible(true);
host_client2.SetLayerTreeHost(host2.get());
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698