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

Side by Side Diff: trunk/src/chrome/renderer/extensions/event_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "extensions/common/extension_urls.h" 7 #include "extensions/common/extension_urls.h"
8 #include "grit/extensions_renderer_resources.h" 8 #include "grit/renderer_resources.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 namespace { 11 namespace {
12 12
13 class EventUnittest : public ModuleSystemTest { 13 class EventUnittest : public ModuleSystemTest {
14 virtual void SetUp() OVERRIDE { 14 virtual void SetUp() OVERRIDE {
15 ModuleSystemTest::SetUp(); 15 ModuleSystemTest::SetUp();
16 16
17 RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); 17 RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS);
18 RegisterModule("json_schema", IDR_JSON_SCHEMA_JS); 18 RegisterModule("json_schema", IDR_JSON_SCHEMA_JS);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 " e.addListener(cb);" 280 " e.addListener(cb);"
281 "} catch (e) {" 281 "} catch (e) {"
282 " caught = true;" 282 " caught = true;"
283 "}" 283 "}"
284 "assert.AssertTrue(caught);"); 284 "assert.AssertTrue(caught);");
285 context_->module_system()->Require("test"); 285 context_->module_system()->Require("test");
286 } 286 }
287 287
288 } // namespace 288 } // namespace
289 } // namespace extensions 289 } // namespace extensions
OLDNEW
« no previous file with comments | « trunk/src/chrome/chrome_tests_unit.gypi ('k') | trunk/src/chrome/renderer/extensions/json_schema_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698