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

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: Remove context_provider.mojom 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 72a986a315597a5b5b11f3a7f46926ace69e6a4d..6e4d9ab09da58a6984bd7f753e39480aaae9be3c 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"
@@ -234,7 +235,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();
}
@@ -298,7 +300,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