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

Unified Diff: cc/trees/tree_synchronizer_unittest.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor 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/trees/occlusion_tracker_unittest.cc ('k') | ui/android/resources/resource_manager_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/tree_synchronizer_unittest.cc
diff --git a/cc/trees/tree_synchronizer_unittest.cc b/cc/trees/tree_synchronizer_unittest.cc
index 81bfec180781f79763624d58a8596458b34f2c3a..e2d07696b7ae0451b831c6755af1504a6e1876a1 100644
--- a/cc/trees/tree_synchronizer_unittest.cc
+++ b/cc/trees/tree_synchronizer_unittest.cc
@@ -142,15 +142,9 @@ void ExpectTreesAreIdentical(Layer* root_layer,
}
class TreeSynchronizerTest : public testing::Test {
- public:
- TreeSynchronizerTest()
- : client_(FakeLayerTreeHostClient::DIRECT_3D),
- host_(FakeLayerTreeHost::Create(&client_, &task_graph_runner_)) {}
-
protected:
- FakeLayerTreeHostClient client_;
- TestTaskGraphRunner task_graph_runner_;
- std::unique_ptr<FakeLayerTreeHost> host_;
+ TreeSynchronizerTest()
+ : host_(FakeLayerTreeHost::Create(&client_, &task_graph_runner_)) {}
bool is_equal(ScrollTree::ScrollOffsetMap map,
ScrollTree::ScrollOffsetMap other) {
@@ -169,6 +163,10 @@ class TreeSynchronizerTest : public testing::Test {
}
return true;
}
+
+ FakeLayerTreeHostClient client_;
+ TestTaskGraphRunner task_graph_runner_;
+ std::unique_ptr<FakeLayerTreeHost> host_;
};
// Attempts to synchronizes a null tree. This should not crash, and should
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | ui/android/resources/resource_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698