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

Unified Diff: extensions/renderer/json_schema_unittest.cc

Issue 2936213002: [Extensions] Don't require() a module for calling a method (Closed)
Patch Set: lazyboy's Created 3 years, 6 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
« no previous file with comments | « extensions/renderer/api_test_base.cc ('k') | extensions/renderer/module_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/json_schema_unittest.cc
diff --git a/extensions/renderer/json_schema_unittest.cc b/extensions/renderer/json_schema_unittest.cc
index 789ec96d1994705ed4d14d03ba64cb017b07dbf4..f36c0c527672dacad8ab8dcf3b2fe9debdacd1e1 100644
--- a/extensions/renderer/json_schema_unittest.cc
+++ b/extensions/renderer/json_schema_unittest.cc
@@ -25,6 +25,15 @@ class JsonSchemaTest : public ModuleSystemTest {
protected:
void TestFunction(const std::string& test_name) {
+ {
+ ModuleSystem::NativesEnabledScope natives_enabled_scope(
+ env()->module_system());
+ ASSERT_FALSE(env()
+ ->module_system()
+ ->Require("json_schema_test")
+ .ToLocalChecked()
+ .IsEmpty());
+ }
env()->module_system()->CallModuleMethodSafe("json_schema_test", test_name);
}
« no previous file with comments | « extensions/renderer/api_test_base.cc ('k') | extensions/renderer/module_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698