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

Side by Side Diff: extensions/renderer/api_test_base.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 | « extensions/renderer/api_test_base.h ('k') | extensions/renderer/dispatcher.cc » ('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 "extensions/renderer/api_test_base.h" 5 #include "extensions/renderer/api_test_base.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "extensions/common/extension_urls.h" 10 #include "extensions/common/extension_urls.h"
11 #include "extensions/renderer/dispatcher.h" 11 #include "extensions/renderer/dispatcher.h"
12 #include "extensions/renderer/process_info_native_handler.h" 12 #include "extensions/renderer/process_info_native_handler.h"
13 #include "gin/converter.h" 13 #include "gin/converter.h"
14 #include "gin/dictionary.h" 14 #include "gin/dictionary.h"
15 #include "mojo/public/cpp/bindings/interface_request.h"
16 #include "mojo/public/cpp/system/core.h"
15 #include "third_party/mojo/src/mojo/edk/js/core.h" 17 #include "third_party/mojo/src/mojo/edk/js/core.h"
16 #include "third_party/mojo/src/mojo/edk/js/handle.h" 18 #include "third_party/mojo/src/mojo/edk/js/handle.h"
17 #include "third_party/mojo/src/mojo/edk/js/support.h" 19 #include "third_party/mojo/src/mojo/edk/js/support.h"
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
19 #include "third_party/mojo/src/mojo/public/cpp/system/core.h"
20 20
21 namespace extensions { 21 namespace extensions {
22 namespace { 22 namespace {
23 23
24 // Natives for the implementation of the unit test version of chrome.test. Calls 24 // Natives for the implementation of the unit test version of chrome.test. Calls
25 // the provided |quit_closure| when either notifyPass or notifyFail is called. 25 // the provided |quit_closure| when either notifyPass or notifyFail is called.
26 class TestNatives : public gin::Wrappable<TestNatives> { 26 class TestNatives : public gin::Wrappable<TestNatives> {
27 public: 27 public:
28 static gin::Handle<TestNatives> Create(v8::Isolate* isolate, 28 static gin::Handle<TestNatives> Create(v8::Isolate* isolate,
29 const base::Closure& quit_closure) { 29 const base::Closure& quit_closure) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 test_env_.reset(new ApiTestEnvironment(env())); 232 test_env_.reset(new ApiTestEnvironment(env()));
233 } 233 }
234 234
235 void ApiTestBase::RunTest(const std::string& file_name, 235 void ApiTestBase::RunTest(const std::string& file_name,
236 const std::string& test_name) { 236 const std::string& test_name) {
237 ExpectNoAssertionsMade(); 237 ExpectNoAssertionsMade();
238 test_env_->RunTest(file_name, test_name); 238 test_env_->RunTest(file_name, test_name);
239 } 239 }
240 240
241 } // namespace extensions 241 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/api_test_base.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698