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

Side by Side Diff: extensions/renderer/bindings/api_binding_test.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 6 months 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
OLDNEW
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 "extensions/renderer/api_binding_test.h" 5 #include "extensions/renderer/bindings/api_binding_test.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "gin/array_buffer.h" 9 #include "gin/array_buffer.h"
10 #include "gin/public/context_holder.h" 10 #include "gin/public/context_holder.h"
11 #include "gin/public/isolate_holder.h" 11 #include "gin/public/isolate_holder.h"
12 #include "gin/v8_initializer.h" 12 #include "gin/v8_initializer.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void APIBindingTest::RunGarbageCollection() { 130 void APIBindingTest::RunGarbageCollection() {
131 // '5' is a magic number stolen from Blink; arbitrarily large enough to 131 // '5' is a magic number stolen from Blink; arbitrarily large enough to
132 // hopefully clean up all the various paths. 132 // hopefully clean up all the various paths.
133 for (int i = 0; i < 5; ++i) { 133 for (int i = 0; i < 5; ++i) {
134 isolate()->RequestGarbageCollectionForTesting( 134 isolate()->RequestGarbageCollectionForTesting(
135 v8::Isolate::kFullGarbageCollection); 135 v8::Isolate::kFullGarbageCollection);
136 } 136 }
137 } 137 }
138 138
139 } // namespace extensions 139 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_test.h ('k') | extensions/renderer/bindings/api_binding_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698