OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" |
6 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
8 #include "extensions/common/extension.h" | 9 #include "extensions/common/extension.h" |
9 #include "extensions/common/extension_set.h" | 10 #include "extensions/common/extension_set.h" |
10 #include "extensions/common/features/feature.h" | 11 #include "extensions/common/features/feature.h" |
11 #include "extensions/renderer/gc_callback.h" | 12 #include "extensions/renderer/gc_callback.h" |
12 #include "extensions/renderer/scoped_web_frame.h" | 13 #include "extensions/renderer/scoped_web_frame.h" |
13 #include "extensions/renderer/script_context.h" | 14 #include "extensions/renderer/script_context.h" |
14 #include "extensions/renderer/script_context_set.h" | 15 #include "extensions/renderer/script_context_set.h" |
15 #include "gin/function_template.h" | 16 #include "gin/function_template.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Trigger a GC. The callback should not be invoked because the fallback was | 152 // Trigger a GC. The callback should not be invoked because the fallback was |
152 // already invoked. | 153 // already invoked. |
153 RequestGarbageCollection(); | 154 RequestGarbageCollection(); |
154 message_loop().RunUntilIdle(); | 155 message_loop().RunUntilIdle(); |
155 | 156 |
156 EXPECT_FALSE(callback_invoked); | 157 EXPECT_FALSE(callback_invoked); |
157 } | 158 } |
158 | 159 |
159 } // namespace | 160 } // namespace |
160 } // namespace extensions | 161 } // namespace extensions |
OLD | NEW |