Index: extensions/renderer/utils_unittest.cc |
diff --git a/extensions/renderer/utils_unittest.cc b/extensions/renderer/utils_unittest.cc |
index 06e20f66c7ce0cd7f953e272c02820448529d43e..485c214ea66feab21cd8157b82cfa31be2d10f98 100644 |
--- a/extensions/renderer/utils_unittest.cc |
+++ b/extensions/renderer/utils_unittest.cc |
@@ -18,11 +18,11 @@ class UtilsUnittest : public ModuleSystemTest { |
env()->RegisterModule("utils", IDR_UTILS_JS); |
env()->RegisterTestFile("utils_unittest", "utils_unittest.js"); |
env()->OverrideNativeHandler("schema_registry", |
- "exports.GetSchema = function() {};"); |
+ "exports.$set('GetSchema', function() {});"); |
env()->OverrideNativeHandler("logging", |
- "exports.CHECK = function() {};\n" |
- "exports.DCHECK = function() {};\n" |
- "exports.WARNING = function() {};"); |
+ "exports.$set('CHECK', function() {});\n" |
+ "exports.$set('DCHECK', function() {});\n" |
+ "exports.$set('WARNING', function() {});"); |
env()->OverrideNativeHandler("v8_context", ""); |
gin::Dictionary chrome(env()->isolate(), env()->CreateGlobal("chrome")); |
gin::Dictionary chrome_runtime( |