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

Side by Side Diff: extensions/renderer/event_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 (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"
6
7 #include "extensions/common/extension_urls.h" 5 #include "extensions/common/extension_urls.h"
6 #include "extensions/renderer/module_system_test.h"
8 #include "grit/extensions_renderer_resources.h" 7 #include "grit/extensions_renderer_resources.h"
9 8
10 namespace extensions { 9 namespace extensions {
11 namespace { 10 namespace {
12 11
13 class EventUnittest : public ModuleSystemTest { 12 class EventUnittest : public ModuleSystemTest {
14 virtual void SetUp() OVERRIDE { 13 virtual void SetUp() OVERRIDE {
15 ModuleSystemTest::SetUp(); 14 ModuleSystemTest::SetUp();
16 15
17 env()->RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); 16 env()->RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS);
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 " e.addListener(cb);" 284 " e.addListener(cb);"
286 "} catch (e) {" 285 "} catch (e) {"
287 " caught = true;" 286 " caught = true;"
288 "}" 287 "}"
289 "assert.AssertTrue(caught);"); 288 "assert.AssertTrue(caught);");
290 env()->module_system()->Require("test"); 289 env()->module_system()->Require("test");
291 } 290 }
292 291
293 } // namespace 292 } // namespace
294 } // namespace extensions 293 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698