diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-02 05:55:17 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-02 05:55:17 +0000 |
commit | b3c3fde3c66f9502e97f0c30c91ab4304c40c5b8 (patch) | |
tree | 26c7cce1e739adfe72dad1d73e8b88d79046d20b /extensions/browser/event_router_unittest.cc | |
parent | 9d19aaea6d0198583357cbb8f49d6fb77991371d (diff) | |
download | chromium_src-b3c3fde3c66f9502e97f0c30c91ab4304c40c5b8.zip chromium_src-b3c3fde3c66f9502e97f0c30c91ab4304c40c5b8.tar.gz chromium_src-b3c3fde3c66f9502e97f0c30c91ab4304c40c5b8.tar.bz2 |
Move tests from Chrome's unit_tests to extensions_unittests
Part of extensions module componentization.
* Add a NotificationService for EventRouterTest
* Move the test data for ValueStoreFrontendTest
* The rest can move unchanged
BUG=397164
TEST=unit_tests, extensions_unittests
Review URL: https://codereview.chromium.org/435703002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser/event_router_unittest.cc')
-rw-r--r-- | extensions/browser/event_router_unittest.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/browser/event_router_unittest.cc b/extensions/browser/event_router_unittest.cc index aa068ce..b063880 100644 --- a/extensions/browser/event_router_unittest.cc +++ b/extensions/browser/event_router_unittest.cc @@ -10,6 +10,7 @@ #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" #include "base/values.h" +#include "content/public/browser/notification_service.h" #include "extensions/browser/event_listener_map.h" #include "testing/gtest/include/gtest/gtest.h" @@ -81,9 +82,18 @@ scoped_ptr<EventListener> CreateEventListenerForURL( } // namespace class EventRouterTest : public testing::Test { + public: + EventRouterTest() + : notification_service_(content::NotificationService::Create()) {} + protected: // Tests adding and removing observers from EventRouter. void RunEventRouterObserverTest(const EventListenerConstructor& constructor); + + private: + scoped_ptr<content::NotificationService> notification_service_; + + DISALLOW_COPY_AND_ASSIGN(EventRouterTest); }; TEST_F(EventRouterTest, GetBaseEventName) { |