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

Unified Diff: cc/test/remote_client_layer_factory.cc

Issue 2456093003: Enable more layer_tree_host_unittest for LayerTreeHostRemote. (Closed)
Patch Set: Minor polish on refactored test class. Created 4 years, 1 month 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/test/remote_client_layer_factory.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_client_layer_factory.cc
diff --git a/cc/test/remote_client_layer_factory.cc b/cc/test/remote_client_layer_factory.cc
index cc7fd9f618ed686637822a94d108b4668aef129a..3ac6b04cfaf320636d5e64f90b877d72cfdfb09f 100644
--- a/cc/test/remote_client_layer_factory.cc
+++ b/cc/test/remote_client_layer_factory.cc
@@ -8,6 +8,7 @@
#include "cc/layers/picture_layer.h"
#include "cc/layers/solid_color_scrollbar_layer.h"
#include "cc/test/fake_picture_layer.h"
+#include "cc/test/push_properties_counting_layer.h"
namespace cc {
@@ -31,15 +32,6 @@ scoped_refptr<PictureLayer> RemoteClientLayerFactory::CreatePictureLayer(
return layer;
}
-scoped_refptr<PictureLayer> RemoteClientLayerFactory::CreateFakePictureLayer(
- int engine_layer_id,
- ContentLayerClient* content_layer_client) {
- scoped_refptr<PictureLayer> layer =
- FakePictureLayer::Create(content_layer_client);
- layer->SetLayerIdForTesting(engine_layer_id);
- return layer;
-}
-
scoped_refptr<SolidColorScrollbarLayer>
RemoteClientLayerFactory::CreateSolidColorScrollbarLayer(
int engine_layer_id,
@@ -56,4 +48,22 @@ RemoteClientLayerFactory::CreateSolidColorScrollbarLayer(
return layer;
}
+scoped_refptr<PictureLayer> RemoteClientLayerFactory::CreateFakePictureLayer(
+ int engine_layer_id,
+ ContentLayerClient* content_layer_client) {
+ scoped_refptr<PictureLayer> layer =
+ FakePictureLayer::Create(content_layer_client);
+ layer->SetLayerIdForTesting(engine_layer_id);
+ return layer;
+}
+
+scoped_refptr<Layer>
+RemoteClientLayerFactory::CreatePushPropertiesCountingLayer(
+ int engine_layer_id) {
+ scoped_refptr<PushPropertiesCountingLayer> layer =
+ PushPropertiesCountingLayer::Create();
+ layer->SetLayerIdForTesting(engine_layer_id);
+ return layer;
+}
+
} // namespace cc
« no previous file with comments | « cc/test/remote_client_layer_factory.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698