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

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: cross-context tests 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..c1d8f661bbfb1d4dc11eb08b4a97b8633862a90c 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:

Powered by Google App Engine
This is Rietveld 408576698