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

Side by Side Diff: chrome/renderer/extensions/event_unittest.cc

Issue 10821133: Move c/r/extensions/* into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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
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 "grit/renderer_resources.h" 7 #include "grit/renderer_resources.h"
8 8
9 namespace extensions {
9 namespace { 10 namespace {
10 11
11 class EventUnittest : public ModuleSystemTest { 12 class EventUnittest : public ModuleSystemTest {
12 virtual void SetUp() OVERRIDE { 13 virtual void SetUp() OVERRIDE {
13 ModuleSystemTest::SetUp(); 14 ModuleSystemTest::SetUp();
14 module_system_->RunString("chrome = {};", "setup-chrome"); 15 module_system_->RunString("chrome = {};", "setup-chrome");
15 16
16 RegisterModule("event", IDR_EVENT_BINDINGS_JS); 17 RegisterModule("event", IDR_EVENT_BINDINGS_JS);
17 RegisterModule("schemaUtils", IDR_SCHEMA_UTILS_JS); 18 RegisterModule("schemaUtils", IDR_SCHEMA_UTILS_JS);
18 RegisterModule("utils", IDR_UTILS_JS); 19 RegisterModule("utils", IDR_UTILS_JS);
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 "try {" 267 "try {"
267 " e.addListener(cb);" 268 " e.addListener(cb);"
268 "} catch (e) {" 269 "} catch (e) {"
269 " caught = true;" 270 " caught = true;"
270 "}" 271 "}"
271 "assert.AssertTrue(caught);"); 272 "assert.AssertTrue(caught);");
272 module_system_->Require("test"); 273 module_system_->Require("test");
273 } 274 }
274 275
275 } // namespace 276 } // namespace
277 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/extensions/extension_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698