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

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

Issue 703273002: Update mojo sdk to rev 04a510fb37db10642e156957f9b2c11c2f6442ac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content/child -> mojo/common linking Created 6 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/bindings/js/core.h" 15 #include "mojo/edk/js/core.h"
16 #include "mojo/bindings/js/handle.h" 16 #include "mojo/edk/js/handle.h"
17 #include "mojo/bindings/js/support.h" 17 #include "mojo/edk/js/support.h"
18 #include "mojo/public/cpp/bindings/interface_request.h" 18 #include "mojo/public/cpp/bindings/interface_request.h"
19 #include "mojo/public/cpp/system/core.h" 19 #include "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:
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 void ApiTestBase::RunPromisesAgain() { 218 void ApiTestBase::RunPromisesAgain() {
219 RunResolvedPromises(); 219 RunResolvedPromises();
220 base::MessageLoop::current()->PostTask( 220 base::MessageLoop::current()->PostTask(
221 FROM_HERE, 221 FROM_HERE,
222 base::Bind(&ApiTestBase::RunPromisesAgain, base::Unretained(this))); 222 base::Bind(&ApiTestBase::RunPromisesAgain, base::Unretained(this)));
223 } 223 }
224 224
225 } // namespace extensions 225 } // 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