| 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 "extensions/renderer/module_system_test.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 namespace { | 8 namespace { |
| 9 | 9 |
| 10 class SafeBuiltinsUnittest : public ModuleSystemTest { | 10 class SafeBuiltinsUnittest : public ModuleSystemTest { |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) { | 13 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) { |
| 14 ModuleSystem::NativesEnabledScope natives_enabled_scope( | 14 ModuleSystem::NativesEnabledScope natives_enabled_scope( |
| 15 env()->module_system()); | 15 env()->module_system()); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 "assert.AssertTrue(arr.length == 1);\n" | 58 "assert.AssertTrue(arr.length == 1);\n" |
| 59 "assert.AssertTrue(arr[0] == 1);\n"); | 59 "assert.AssertTrue(arr[0] == 1);\n"); |
| 60 env()->module_system()->Require("test"); | 60 env()->module_system()->Require("test"); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via | 63 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via |
| 64 // chrome/test/data/extensions/api_test/messaging/connect/page.js. | 64 // chrome/test/data/extensions/api_test/messaging/connect/page.js. |
| 65 | 65 |
| 66 } // namespace | 66 } // namespace |
| 67 } // namespace extensions | 67 } // namespace extensions |
| OLD | NEW |