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

Side by Side Diff: extensions/renderer/module_system_test.h

Issue 2586303002: [Extensions Bindings] Pull out test resources (Closed)
Patch Set: comment Created 4 years 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/BUILD.gn ('k') | extensions/renderer/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_ 5 #ifndef EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_
6 #define EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_ 6 #define EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/renderer/module_system.h" 9 #include "extensions/renderer/module_system.h"
10 #include "extensions/renderer/script_context.h" 10 #include "extensions/renderer/script_context.h"
11 #include "gin/public/context_holder.h" 11 #include "gin/public/context_holder.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "v8/include/v8.h" 13 #include "v8/include/v8.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 class StringSourceMap;
16 17
17 class ModuleSystemTestEnvironment { 18 class ModuleSystemTestEnvironment {
18 public: 19 public:
19 class AssertNatives; 20 class AssertNatives;
20 class StringSourceMap;
21 21
22 explicit ModuleSystemTestEnvironment(v8::Isolate* isolate); 22 explicit ModuleSystemTestEnvironment(v8::Isolate* isolate);
23 ~ModuleSystemTestEnvironment(); 23 ~ModuleSystemTestEnvironment();
24 24
25 // Register a named JS module in the module system. 25 // Register a named JS module in the module system.
26 void RegisterModule(const std::string& name, const std::string& code); 26 void RegisterModule(const std::string& name, const std::string& code);
27 27
28 // Register a named JS module with source retrieved from a ResourceBundle. 28 // Register a named JS module with source retrieved from a ResourceBundle.
29 void RegisterModule(const std::string& name, int resource_id); 29 void RegisterModule(const std::string& name, int resource_id);
30 30
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 std::unique_ptr<ModuleSystemTestEnvironment> env_; 102 std::unique_ptr<ModuleSystemTestEnvironment> env_;
103 bool should_assertions_be_made_; 103 bool should_assertions_be_made_;
104 104
105 private: 105 private:
106 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest); 106 DISALLOW_COPY_AND_ASSIGN(ModuleSystemTest);
107 }; 107 };
108 108
109 } // namespace extensions 109 } // namespace extensions
110 110
111 #endif // EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_ 111 #endif // EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_
OLDNEW
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/module_system_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698