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

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

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
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
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 79be067cc803ac8097d4df44dd91241930d87fa6..dbadeb91f1898d3d7794fd311f1d3ba450372e1b 100644
--- a/mojo/shell/background/tests/background_shell_unittest.cc
+++ b/mojo/shell/background/tests/background_shell_unittest.cc
@@ -11,13 +11,12 @@
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "url/gurl.h"
namespace mojo {
namespace shell {
namespace {
-const char kTestUrl[] = "mojo:test-app";
+const char kTestName[] = "mojo:test-app";
class ShellClientImpl : public ShellClient {
public:
@@ -30,7 +29,7 @@ class ShellClientImpl : public ShellClient {
scoped_ptr<TestApplicationCatalogStore> BuildTestApplicationCatalogStore() {
scoped_ptr<base::ListValue> apps(new base::ListValue);
- apps->Append(BuildPermissiveSerializedAppInfo(GURL(kTestUrl), "test"));
+ apps->Append(BuildPermissiveSerializedAppInfo(kTestName, "test"));
return make_scoped_ptr(new TestApplicationCatalogStore(std::move(apps)));
}
@@ -53,7 +52,7 @@ TEST(BackgroundShellTest, DISABLED_Basic) {
background_shell.Init(std::move(init_params));
ShellClientImpl shell_client;
ShellConnection shell_connection(
- &shell_client, background_shell.CreateShellClientRequest(GURL(kTestUrl)));
+ &shell_client, background_shell.CreateShellClientRequest(kTestName));
shell_connection.WaitForInitialize();
mojom::TestServicePtr test_service;
shell_connection.connector()->ConnectToInterface(
« no previous file with comments | « mojo/shell/background/background_shell.cc ('k') | mojo/shell/background/tests/test_application_catalog_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698