OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stdint.h> | 5 #include <stdint.h> |
6 #include <memory> | 6 #include <memory> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "content/browser/utility_process_host_impl.h" | 12 #include "content/browser/utility_process_host_impl.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/utility_process_host_client.h" | 14 #include "content/public/browser/utility_process_host_client.h" |
15 #include "content/public/test/content_browser_test.h" | 15 #include "content/public/test/content_browser_test.h" |
16 #include "content/public/test/test_service.mojom.h" | 16 #include "content/public/test/test_service.mojom.h" |
17 #include "services/shell/public/cpp/interface_provider.h" | 17 #include "services/service_manager/public/cpp/interface_provider.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 namespace { | 20 namespace { |
21 | 21 |
22 const std::string kTestMessage = "My hovercraft is full of eels!"; | 22 const std::string kTestMessage = "My hovercraft is full of eels!"; |
23 | 23 |
24 class MojoSandboxTest : public ContentBrowserTest { | 24 class MojoSandboxTest : public ContentBrowserTest { |
25 public: | 25 public: |
26 MojoSandboxTest() {} | 26 MojoSandboxTest() {} |
27 | 27 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 *got_response = true; | 83 *got_response = true; |
84 quit_closure.Run(); | 84 quit_closure.Run(); |
85 }, | 85 }, |
86 run_loop.QuitClosure(), &got_response)); | 86 run_loop.QuitClosure(), &got_response)); |
87 run_loop.Run(); | 87 run_loop.Run(); |
88 EXPECT_TRUE(got_response); | 88 EXPECT_TRUE(got_response); |
89 } | 89 } |
90 | 90 |
91 } // namespace | 91 } // namespace |
92 } // namespace content | 92 } // namespace content |
OLD | NEW |