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

Side by Side Diff: shell/external_application_listener_unittest.cc

Issue 930243006: Simplify the ApplicationLoader interface in preparation for changes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ptal Created 5 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 unified diff | Download patch
« no previous file with comments | « shell/dynamic_application_loader_unittest.cc ('k') | shell/native_application_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/test/test_io_thread.h" 10 #include "base/test/test_io_thread.h"
(...skipping 17 matching lines...) Expand all
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 namespace mojo { 30 namespace mojo {
31 namespace shell { 31 namespace shell {
32 32
33 class NotAnApplicationLoader : public ApplicationLoader { 33 class NotAnApplicationLoader : public ApplicationLoader {
34 public: 34 public:
35 NotAnApplicationLoader() {} 35 NotAnApplicationLoader() {}
36 ~NotAnApplicationLoader() override {} 36 ~NotAnApplicationLoader() override {}
37 37
38 void Load(ApplicationManager* application_manager, 38 void Load(const GURL& url,
39 const GURL& url, 39 InterfaceRequest<Application> application_request) override {
40 InterfaceRequest<Application> application_request,
41 LoadCallback callback) override {
42 NOTREACHED(); 40 NOTREACHED();
43 } 41 }
44 42
45 void OnApplicationError(ApplicationManager* manager, 43 void OnApplicationError(ApplicationManager* manager,
46 const GURL& url) override { 44 const GURL& url) override {
47 NOTREACHED(); 45 NOTREACHED();
48 } 46 }
49 }; 47 };
50 48
51 class ExternalApplicationListenerTest : public testing::Test { 49 class ExternalApplicationListenerTest : public testing::Test {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 run_loop.Run(); 274 run_loop.Run();
277 275
278 // The apps need to be destroyed on the thread where they did socket stuff. 276 // The apps need to be destroyed on the thread where they did socket stuff.
279 io_runner()->PostTask( 277 io_runner()->PostTask(
280 FROM_HERE, base::Bind(&DestroyOnIOThread, base::Passed(&supersweet_app), 278 FROM_HERE, base::Bind(&DestroyOnIOThread, base::Passed(&supersweet_app),
281 base::Passed(&awesome_app))); 279 base::Passed(&awesome_app)));
282 } 280 }
283 281
284 } // namespace shell 282 } // namespace shell
285 } // namespace mojo 283 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/dynamic_application_loader_unittest.cc ('k') | shell/native_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698