| 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 "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 MessagingUtilsUnittest : public ModuleSystemTest { | 12 class MessagingUtilsUnittest : public ModuleSystemTest { |
| 13 protected: | 13 protected: |
| 14 void RegisterTestModule(const char* code) { | 14 void RegisterTestModule(const char* code) { |
| 15 env()->RegisterModule( | 15 env()->RegisterModule( |
| 16 "test", | 16 "test", |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 "AssertTrue(args.length == 4);\n" | 188 "AssertTrue(args.length == 4);\n" |
| 189 "AssertTrue(args[0] === null);\n" | 189 "AssertTrue(args[0] === null);\n" |
| 190 "AssertTrue(args[1] == obj1);\n" | 190 "AssertTrue(args[1] == obj1);\n" |
| 191 "AssertTrue(args[2] == obj2);\n" | 191 "AssertTrue(args[2] == obj2);\n" |
| 192 "AssertTrue(args[3] === null);"); | 192 "AssertTrue(args[3] === null);"); |
| 193 env()->module_system()->Require("test"); | 193 env()->module_system()->Require("test"); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace | 196 } // namespace |
| 197 } // namespace extensions | 197 } // namespace extensions |
| OLD | NEW |