OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |