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

Unified Diff: cc/resources/scoped_resource_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/resources/resource_pool_unittest.cc ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_resource_unittest.cc
diff --git a/cc/resources/scoped_resource_unittest.cc b/cc/resources/scoped_resource_unittest.cc
index a7811d0859eff1251a6721027860410fb0871ae0..dbb26255a4832152869666e613c5f31e7976f1cb 100644
--- a/cc/resources/scoped_resource_unittest.cc
+++ b/cc/resources/scoped_resource_unittest.cc
@@ -18,7 +18,8 @@ namespace {
TEST(ScopedResourceTest, NewScopedResource) {
FakeOutputSurfaceClient output_surface_client;
- std::unique_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d());
+ std::unique_ptr<OutputSurface> output_surface(
+ FakeOutputSurface::CreateDelegating3d());
CHECK(output_surface->BindToClient(&output_surface_client));
std::unique_ptr<SharedBitmapManager> shared_bitmap_manager(
@@ -40,7 +41,8 @@ TEST(ScopedResourceTest, NewScopedResource) {
TEST(ScopedResourceTest, CreateScopedResource) {
FakeOutputSurfaceClient output_surface_client;
- std::unique_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d());
+ std::unique_ptr<OutputSurface> output_surface(
+ FakeOutputSurface::CreateDelegating3d());
CHECK(output_surface->BindToClient(&output_surface_client));
std::unique_ptr<SharedBitmapManager> shared_bitmap_manager(
@@ -65,7 +67,8 @@ TEST(ScopedResourceTest, CreateScopedResource) {
TEST(ScopedResourceTest, ScopedResourceIsDeleted) {
FakeOutputSurfaceClient output_surface_client;
- std::unique_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d());
+ std::unique_ptr<OutputSurface> output_surface(
+ FakeOutputSurface::CreateDelegating3d());
CHECK(output_surface->BindToClient(&output_surface_client));
std::unique_ptr<SharedBitmapManager> shared_bitmap_manager(
« no previous file with comments | « cc/resources/resource_pool_unittest.cc ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698