| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/test/base/module_system_test.h" | 5 #include "chrome/test/base/module_system_test.h" |
| 6 | 6 |
| 7 #include "grit/renderer_resources.h" | |
| 8 | |
| 9 namespace extensions { | 7 namespace extensions { |
| 10 namespace { | 8 namespace { |
| 11 | 9 |
| 12 class SafeBuiltinsUnittest : public ModuleSystemTest { | 10 class SafeBuiltinsUnittest : public ModuleSystemTest { |
| 13 }; | 11 }; |
| 14 | 12 |
| 15 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) { | 13 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) { |
| 16 ModuleSystem::NativesEnabledScope natives_enabled_scope( | 14 ModuleSystem::NativesEnabledScope natives_enabled_scope( |
| 17 context_->module_system()); | 15 context_->module_system()); |
| 18 RegisterModule("test", | 16 RegisterModule("test", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 "assert.AssertTrue(arr[0] == 1);\n" | 61 "assert.AssertTrue(arr[0] == 1);\n" |
| 64 ); | 62 ); |
| 65 context_->module_system()->Require("test"); | 63 context_->module_system()->Require("test"); |
| 66 } | 64 } |
| 67 | 65 |
| 68 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via | 66 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via |
| 69 // chrome/test/data/extensions/api_test/messaging/connect/page.js. | 67 // chrome/test/data/extensions/api_test/messaging/connect/page.js. |
| 70 | 68 |
| 71 } // namespace | 69 } // namespace |
| 72 } // namespace extensions | 70 } // namespace extensions |
| OLD | NEW |