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

Side by Side Diff: trunk/src/chrome/renderer/extensions/safe_builtins_unittest.cc

Issue 309413002: Revert 274558 "Move some extensions renderer resources to extens..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 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
7 namespace extensions { 9 namespace extensions {
8 namespace { 10 namespace {
9 11
10 class SafeBuiltinsUnittest : public ModuleSystemTest { 12 class SafeBuiltinsUnittest : public ModuleSystemTest {
11 }; 13 };
12 14
13 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) { 15 TEST_F(SafeBuiltinsUnittest, TestNotOriginalObject) {
14 ModuleSystem::NativesEnabledScope natives_enabled_scope( 16 ModuleSystem::NativesEnabledScope natives_enabled_scope(
15 context_->module_system()); 17 context_->module_system());
16 RegisterModule("test", 18 RegisterModule("test",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "assert.AssertTrue(arr[0] == 1);\n" 63 "assert.AssertTrue(arr[0] == 1);\n"
62 ); 64 );
63 context_->module_system()->Require("test"); 65 context_->module_system()->Require("test");
64 } 66 }
65 67
66 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via 68 // NOTE: JSON is already tested in ExtensionApiTest.Messaging, via
67 // chrome/test/data/extensions/api_test/messaging/connect/page.js. 69 // chrome/test/data/extensions/api_test/messaging/connect/page.js.
68 70
69 } // namespace 71 } // namespace
70 } // namespace extensions 72 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698