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

Unified Diff: chrome/renderer/extensions/json_schema_unittest.cc

Issue 359413004: Add support for using AMD modules from extensions modules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extensions_renderer should depend on gin Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/json_schema_unittest.cc
diff --git a/chrome/renderer/extensions/json_schema_unittest.cc b/chrome/renderer/extensions/json_schema_unittest.cc
index aabd91c379b07de45ad5b6ef0e2a39c3fd669151..f2c891f2a6c3e78204b5a3e0ea366cc0124d054b 100644
--- a/chrome/renderer/extensions/json_schema_unittest.cc
+++ b/chrome/renderer/extensions/json_schema_unittest.cc
@@ -13,18 +13,18 @@ class JsonSchemaTest : public ModuleSystemTest {
virtual void SetUp() OVERRIDE {
ModuleSystemTest::SetUp();
- RegisterModule("json_schema", IDR_JSON_SCHEMA_JS);
- RegisterModule("utils", IDR_UTILS_JS);
+ env()->RegisterModule("json_schema", IDR_JSON_SCHEMA_JS);
+ env()->RegisterModule("utils", IDR_UTILS_JS);
- context_->module_system()->RegisterNativeHandler("schema_registry",
- schema_registry_.AsNativeHandler());
+ env()->module_system()->RegisterNativeHandler(
+ "schema_registry", schema_registry_.AsNativeHandler());
- RegisterTestFile("json_schema_test", "json_schema_test.js");
+ env()->RegisterTestFile("json_schema_test", "json_schema_test.js");
}
protected:
void TestFunction(const std::string& test_name) {
- context_->module_system()->CallModuleMethod("json_schema_test", test_name);
+ env()->module_system()->CallModuleMethod("json_schema_test", test_name);
}
private:
« no previous file with comments | « chrome/renderer/extensions/event_unittest.cc ('k') | chrome/renderer/extensions/messaging_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698