OLD | NEW |
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 "content/public/test/test_mojo_app.h" | 5 #include "content/public/test/test_mojo_app.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "mojo/application/public/cpp/application_connection.h" | 10 #include "mojo/shell/public/cpp/application_connection.h" |
11 #include "mojo/application/public/cpp/application_impl.h" | 11 #include "mojo/shell/public/cpp/application_impl.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 const char kTestMojoAppUrl[] = "system:content_mojo_test"; | 15 const char kTestMojoAppUrl[] = "system:content_mojo_test"; |
16 | 16 |
17 TestMojoApp::TestMojoApp() : service_binding_(this), app_(nullptr) { | 17 TestMojoApp::TestMojoApp() : service_binding_(this), app_(nullptr) { |
18 } | 18 } |
19 | 19 |
20 TestMojoApp::~TestMojoApp() { | 20 TestMojoApp::~TestMojoApp() { |
21 } | 21 } |
(...skipping 19 matching lines...) Expand all Loading... |
41 callback.Run(); | 41 callback.Run(); |
42 DCHECK(app_); | 42 DCHECK(app_); |
43 app_->Quit(); | 43 app_->Quit(); |
44 } | 44 } |
45 | 45 |
46 void TestMojoApp::GetRequestorURL(const GetRequestorURLCallback& callback) { | 46 void TestMojoApp::GetRequestorURL(const GetRequestorURLCallback& callback) { |
47 callback.Run(requestor_url_.spec()); | 47 callback.Run(requestor_url_.spec()); |
48 } | 48 } |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
OLD | NEW |