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

Side by Side Diff: chrome/test/base/module_system_test.h

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/resource_bundle_source_map.h ('k') | chrome/test/base/module_system_test.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ 5 #ifndef CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_
6 #define CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ 6 #define CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_
7 7
8 #include "chrome/renderer/extensions/chrome_v8_context.h" 8 #include "chrome/renderer/extensions/chrome_v8_context.h"
9 #include "chrome/renderer/extensions/module_system.h" 9 #include "extensions/renderer/module_system.h"
10 #include "extensions/renderer/scoped_persistent.h" 10 #include "extensions/renderer/scoped_persistent.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "v8/include/v8.h" 12 #include "v8/include/v8.h"
13 13
14 // Test fixture for testing JS that makes use of the module system. 14 // Test fixture for testing JS that makes use of the module system.
15 // 15 //
16 // Typically tests will look like: 16 // Typically tests will look like:
17 // 17 //
18 // TEST_F(MyModuleSystemTest, TestStuff) { 18 // TEST_F(MyModuleSystemTest, TestStuff) {
19 // ModuleSystem::NativesEnabledScope natives_enabled(module_system_.get()); 19 // ModuleSystem::NativesEnabledScope natives_enabled(module_system_.get());
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 AssertNatives* assert_natives_; 63 AssertNatives* assert_natives_;
64 class StringSourceMap; 64 class StringSourceMap;
65 scoped_ptr<StringSourceMap> source_map_; 65 scoped_ptr<StringSourceMap> source_map_;
66 bool should_assertions_be_made_; 66 bool should_assertions_be_made_;
67 67
68 private: 68 private:
69 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest); 69 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest);
70 }; 70 };
71 71
72 #endif // CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_ 72 #endif // CHROME_TEST_BASE_MODULE_SYSTEM_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/resource_bundle_source_map.h ('k') | chrome/test/base/module_system_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698