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

Unified Diff: mojo/services/view_manager/view_manager_connection_unittest.cc

Issue 298653010: Change Shell / ShellClient to ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support content Mojo stuff Created 6 years, 7 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: mojo/services/view_manager/view_manager_connection_unittest.cc
diff --git a/mojo/services/view_manager/view_manager_connection_unittest.cc b/mojo/services/view_manager/view_manager_connection_unittest.cc
index fe507b5ecc2f1cd70f64ddfcc3e34d1f98af465f..0a1f13fa7c0dc08fd0fcd4f87d06b32c15557eea 100644
--- a/mojo/services/view_manager/view_manager_connection_unittest.cc
+++ b/mojo/services/view_manager/view_manager_connection_unittest.cc
@@ -12,9 +12,9 @@
#include "base/strings/stringprintf.h"
#include "mojo/common/common_type_converters.h"
#include "mojo/geometry/geometry_type_converters.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/environment/environment.h"
-#include "mojo/public/cpp/shell/connect.h"
#include "mojo/services/public/cpp/view_manager/util.h"
#include "mojo/services/public/cpp/view_manager/view_manager_types.h"
#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
@@ -376,7 +376,9 @@ class ViewManagerConnectionTest : public testing::Test {
virtual void SetUp() OVERRIDE {
test_helper_.Init();
- ConnectTo(test_helper_.shell(), "mojo:mojo_view_manager", &view_manager_);
+ ConnectToService(test_helper_.service_provider(),
+ "mojo:mojo_view_manager",
+ &view_manager_);
view_manager_.set_client(&client_);
client_.WaitForId();
@@ -386,7 +388,9 @@ class ViewManagerConnectionTest : public testing::Test {
protected:
// Creates a second connection to the viewmanager.
void EstablishSecondConnection() {
- ConnectTo(test_helper_.shell(), "mojo:mojo_view_manager", &view_manager2_);
+ ConnectToService(test_helper_.service_provider(),
+ "mojo:mojo_view_manager",
+ &view_manager2_);
view_manager2_.set_client(&client2_);
client2_.WaitForId();

Powered by Google App Engine
This is Rietveld 408576698