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

Unified Diff: mojo/shell/background/tests/background_shell_unittest.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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 | « mojo/services/tracing/tracing_app.cc ('k') | mojo/shell/background/tests/test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/tests/background_shell_unittest.cc
diff --git a/mojo/shell/background/tests/background_shell_unittest.cc b/mojo/shell/background/tests/background_shell_unittest.cc
index 19280ef9754c47d6e1feae037cd479adedda6f77..79be067cc803ac8097d4df44dd91241930d87fa6 100644
--- a/mojo/shell/background/tests/background_shell_unittest.cc
+++ b/mojo/shell/background/tests/background_shell_unittest.cc
@@ -7,6 +7,7 @@
#include "base/run_loop.h"
#include "mojo/shell/background/tests/test.mojom.h"
#include "mojo/shell/background/tests/test_application_catalog_store.h"
+#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -55,8 +56,8 @@ TEST(BackgroundShellTest, DISABLED_Basic) {
&shell_client, background_shell.CreateShellClientRequest(GURL(kTestUrl)));
shell_connection.WaitForInitialize();
mojom::TestServicePtr test_service;
- static_cast<Shell*>(&shell_connection)
- ->ConnectToInterface("mojo:background_shell_test_app", &test_service);
+ shell_connection.connector()->ConnectToInterface(
+ "mojo:background_shell_test_app", &test_service);
base::RunLoop run_loop;
bool got_result = false;
test_service->Test([&run_loop, &got_result]() {
« no previous file with comments | « mojo/services/tracing/tracing_app.cc ('k') | mojo/shell/background/tests/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698