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

Unified Diff: components/view_manager/view_manager_service_unittest.cc

Issue 1245683004: Mandoline: Merge Surfaces and Views apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Rob's comments Created 5 years, 4 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
Index: components/view_manager/view_manager_service_unittest.cc
diff --git a/components/view_manager/view_manager_service_unittest.cc b/components/view_manager/view_manager_service_unittest.cc
index 6bd8ee38196073ceece61b1182026ef1b553f524..1d6e1432149ee1beb8a949ee6c91de994339fca8 100644
--- a/components/view_manager/view_manager_service_unittest.cc
+++ b/components/view_manager/view_manager_service_unittest.cc
@@ -16,6 +16,7 @@
#include "components/view_manager/public/cpp/util.h"
#include "components/view_manager/public/interfaces/view_manager.mojom.h"
#include "components/view_manager/server_view.h"
+#include "components/view_manager/surfaces/surfaces_state.h"
#include "components/view_manager/test_change_tracker.h"
#include "components/view_manager/view_manager_root_connection.h"
#include "components/view_manager/view_manager_service_impl.h"
@@ -237,7 +238,8 @@ class TestDisplayManagerFactory : public DisplayManagerFactory {
DisplayManager* CreateDisplayManager(
bool is_headless,
mojo::ApplicationImpl* app_impl,
- const scoped_refptr<gles2::GpuState>& gpu_state) override {
+ const scoped_refptr<gles2::GpuState>& gpu_state,
+ const scoped_refptr<surfaces::SurfacesState>& surfaces_state) override {
return new TestDisplayManager();
}
@@ -301,7 +303,8 @@ class ViewManagerServiceTest : public testing::Test {
connection_manager_.reset(new ConnectionManager(&delegate_));
ViewManagerRootImpl* root = new ViewManagerRootImpl(
connection_manager_.get(), true /* is_headless */, nullptr,
- scoped_refptr<gles2::GpuState>());
+ scoped_refptr<gles2::GpuState>(),
+ scoped_refptr<surfaces::SurfacesState>());
// TODO(fsamuel): This is way too magical. We need to find a better way to
// manage lifetime.
root_connection_ = new TestViewManagerRootConnection(

Powered by Google App Engine
This is Rietveld 408576698