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 #ifndef EXTENSIONS_RENDERER_API_TEST_BASE_H_ | 5 #ifndef EXTENSIONS_RENDERER_API_TEST_BASE_H_ |
6 #define EXTENSIONS_RENDERER_API_TEST_BASE_H_ | 6 #define EXTENSIONS_RENDERER_API_TEST_BASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/message_loop/message_loop.h" | |
13 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
14 #include "extensions/renderer/module_system_test.h" | 13 #include "extensions/renderer/module_system_test.h" |
15 #include "extensions/renderer/v8_schema_registry.h" | 14 #include "extensions/renderer/v8_schema_registry.h" |
16 #include "gin/handle.h" | 15 #include "gin/handle.h" |
17 #include "gin/modules/module_registry.h" | 16 #include "gin/modules/module_registry.h" |
18 #include "gin/object_template_builder.h" | 17 #include "gin/object_template_builder.h" |
19 #include "gin/wrappable.h" | 18 #include "gin/wrappable.h" |
20 #include "mojo/public/cpp/bindings/interface_request.h" | 19 #include "mojo/public/cpp/bindings/interface_request.h" |
21 #include "mojo/public/cpp/system/core.h" | 20 #include "mojo/public/cpp/system/core.h" |
22 | 21 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ~ApiTestBase() override; | 108 ~ApiTestBase() override; |
110 void SetUp() override; | 109 void SetUp() override; |
111 void RunTest(const std::string& file_name, const std::string& test_name); | 110 void RunTest(const std::string& file_name, const std::string& test_name); |
112 | 111 |
113 ApiTestEnvironment* api_test_env() { return test_env_.get(); } | 112 ApiTestEnvironment* api_test_env() { return test_env_.get(); } |
114 TestInterfaceProvider* interface_provider() { | 113 TestInterfaceProvider* interface_provider() { |
115 return test_env_->interface_provider(); | 114 return test_env_->interface_provider(); |
116 } | 115 } |
117 | 116 |
118 private: | 117 private: |
119 base::MessageLoop message_loop_; | |
120 std::unique_ptr<ApiTestEnvironment> test_env_; | 118 std::unique_ptr<ApiTestEnvironment> test_env_; |
121 }; | 119 }; |
122 | 120 |
123 } // namespace extensions | 121 } // namespace extensions |
124 | 122 |
125 #endif // EXTENSIONS_RENDERER_API_TEST_BASE_H_ | 123 #endif // EXTENSIONS_RENDERER_API_TEST_BASE_H_ |
OLD | NEW |