| 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 "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 Loading... |
| 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 |
| OLD | NEW |