| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/strings/stringprintf.h" | 5 #include "base/strings/stringprintf.h" |
| 6 #include "chrome/test/base/module_system_test.h" | 6 #include "extensions/renderer/module_system_test.h" |
| 7 #include "grit/extensions_renderer_resources.h" | 7 #include "grit/extensions_renderer_resources.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 class UtilsUnittest : public ModuleSystemTest { | 12 class UtilsUnittest : public ModuleSystemTest { |
| 13 protected: | 13 protected: |
| 14 void RegisterTestModule(const char* code) { | 14 void RegisterTestModule(const char* code) { |
| 15 env()->RegisterModule("test", | 15 env()->RegisterModule("test", |
| 16 base::StringPrintf( | 16 base::StringPrintf( |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 "AssertTrue(subsub.subSubFunc() == 'subsub');\n" | 114 "AssertTrue(subsub.subSubFunc() == 'subsub');\n" |
| 115 "AssertTrue(subsub instanceof SuperClass);\n" | 115 "AssertTrue(subsub instanceof SuperClass);\n" |
| 116 "AssertTrue(subsub instanceof SubClass);\n" | 116 "AssertTrue(subsub instanceof SubClass);\n" |
| 117 "AssertTrue(subsub instanceof SubSubClass);\n"); | 117 "AssertTrue(subsub instanceof SubSubClass);\n"); |
| 118 | 118 |
| 119 env()->module_system()->Require("test"); | 119 env()->module_system()->Require("test"); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace | 122 } // namespace |
| 123 } // namespace extensions | 123 } // namespace extensions |
| OLD | NEW |