Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: extensions/renderer/utils_unittest.cc

Issue 375243002: Move ModuleSystemTest and the tests that use it into extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: namespace extensions Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698