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

Side by Side Diff: chrome/browser/extensions/extension_event_router_forwarder_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/extension_event_router_forwarder.h" 5 #include "chrome/browser/extensions/extension_event_router_forwarder.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/system_monitor/system_monitor.h" 8 #include "base/system_monitor/system_monitor.h"
9 #include "base/test/thread_test_helper.h" 9 #include "base/test/thread_test_helper.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
11 #include "chrome/test/base/testing_browser_process_test.h"
11 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
12 #include "chrome/test/testing_browser_process_test.h"
13 #include "content/browser/browser_thread.h" 13 #include "content/browser/browser_thread.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace { 18 namespace {
19 19
20 const char kEventName[] = "event_name"; 20 const char kEventName[] = "event_name";
21 const char kEventArgs[] = "event_args"; 21 const char kEventArgs[] = "event_args";
22 const char kExt[] = "extension"; 22 const char kExt[] = "extension";
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 using ::testing::_; 249 using ::testing::_;
250 GURL url; 250 GURL url;
251 EXPECT_CALL(*event_router, 251 EXPECT_CALL(*event_router,
252 CallExtensionEventRouter( 252 CallExtensionEventRouter(
253 profile1_, kExt, kEventName, kEventArgs, NULL, url)); 253 profile1_, kExt, kEventName, kEventArgs, NULL, url));
254 EXPECT_CALL(*event_router, 254 EXPECT_CALL(*event_router,
255 CallExtensionEventRouter(profile2_, _, _, _, _, _)).Times(0); 255 CallExtensionEventRouter(profile2_, _, _, _, _, _)).Times(0);
256 event_router->DispatchEventToExtension(kExt, kEventName, kEventArgs, 256 event_router->DispatchEventToExtension(kExt, kEventName, kEventArgs,
257 profile1_, false, url); 257 profile1_, false, url);
258 } 258 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_cookies_unittest.cc ('k') | chrome/browser/extensions/extension_icon_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698