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

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

Issue 831423005: Split out the extensions gin::Runner implementation into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « extensions/renderer/script_context.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "extensions/renderer/module_system_test.h"
6 #include "extensions/renderer/script_context.h"
7 #include "gin/per_context_data.h"
8 #include "gin/runner.h"
9
10 namespace extensions {
11
12 using ScriptContextTest = ModuleSystemTest;
13
14 TEST_F(ScriptContextTest, GinRunnerLifetime) {
15 ExpectNoAssertionsMade();
16 base::WeakPtr<gin::Runner> weak_runner =
17 gin::PerContextData::From(env()->context()->v8_context())
18 ->runner()
19 ->GetWeakPtr();
20 env()->ShutdownModuleSystem();
21 EXPECT_FALSE(weak_runner);
22 }
23
24 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/script_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698