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

Side by Side Diff: shell/shell_apptest.cc

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « shell/android/native_viewport_application_loader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "mojo/data_pipe_utils/data_pipe_utils.h" 13 #include "mojo/data_pipe_utils/data_pipe_utils.h"
14 #include "mojo/public/cpp/application/application_impl.h" 14 #include "mojo/public/cpp/application/application_impl.h"
15 #include "mojo/public/cpp/application/application_test_base.h" 15 #include "mojo/public/cpp/application/application_test_base.h"
16 #include "mojo/public/cpp/system/macros.h" 16 #include "mojo/public/cpp/system/macros.h"
17 #include "mojo/services/http_server/public/cpp/http_server_util.h" 17 #include "mojo/services/http_server/cpp/http_server_util.h"
18 #include "mojo/services/http_server/public/interfaces/http_server.mojom.h" 18 #include "mojo/services/http_server/interfaces/http_server.mojom.h"
19 #include "mojo/services/http_server/public/interfaces/http_server_factory.mojom. h" 19 #include "mojo/services/http_server/interfaces/http_server_factory.mojom.h"
20 #include "mojo/services/network/public/interfaces/net_address.mojom.h" 20 #include "mojo/services/network/public/interfaces/net_address.mojom.h"
21 #include "shell/kPingable.h" 21 #include "shell/kPingable.h"
22 #include "shell/test/pingable.mojom.h" 22 #include "shell/test/pingable.mojom.h"
23 23
24 using mojo::String; 24 using mojo::String;
25 25
26 namespace { 26 namespace {
27 27
28 std::string GetURL(uint16_t port, const std::string& path) { 28 std::string GetURL(uint16_t port, const std::string& path) {
29 return base::StringPrintf("http://127.0.0.1:%u/%s", 29 return base::StringPrintf("http://127.0.0.1:%u/%s",
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 EXPECT_TRUE(EndsWith(app_url, "/pingable_app.mojo", true)); 189 EXPECT_TRUE(EndsWith(app_url, "/pingable_app.mojo", true));
190 EXPECT_EQ(app_url.To<std::string>() + "?foo", connection_url); 190 EXPECT_EQ(app_url.To<std::string>() + "?foo", connection_url);
191 EXPECT_EQ("hello", message); 191 EXPECT_EQ("hello", message);
192 base::MessageLoop::current()->Quit(); 192 base::MessageLoop::current()->Quit();
193 }; 193 };
194 pingable->Ping("hello", callback); 194 pingable->Ping("hello", callback);
195 base::RunLoop().Run(); 195 base::RunLoop().Run();
196 } 196 }
197 197
198 } // namespace 198 } // namespace
OLDNEW
« no previous file with comments | « shell/android/native_viewport_application_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698