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

Side by Side Diff: chrome/test/test_notification_tracker.cc

Issue 5783006: Cleanup: Remove unneeded includes of notification_service.h in other headers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/test/test_notification_tracker.h ('k') | chrome/test/thread_observer_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/test_notification_tracker.h" 5 #include "chrome/test/test_notification_tracker.h"
6 6
7 #include "chrome/common/notification_service.h"
8
7 TestNotificationTracker::Event::Event() 9 TestNotificationTracker::Event::Event()
8 : type(NotificationType::ALL), 10 : type(NotificationType::ALL),
9 source(NotificationService::AllSources()), 11 source(NotificationService::AllSources()),
10 details(NotificationService::NoDetails()) { 12 details(NotificationService::NoDetails()) {
11 } 13 }
12 TestNotificationTracker::Event::Event(NotificationType t, 14 TestNotificationTracker::Event::Event(NotificationType t,
13 NotificationSource s, 15 NotificationSource s,
14 NotificationDetails d) 16 NotificationDetails d)
15 : type(t), 17 : type(t),
16 source(s), 18 source(s),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 events_[2].type == type3; 67 events_[2].type == type3;
66 Reset(); 68 Reset();
67 return success; 69 return success;
68 } 70 }
69 71
70 void TestNotificationTracker::Observe(NotificationType type, 72 void TestNotificationTracker::Observe(NotificationType type,
71 const NotificationSource& source, 73 const NotificationSource& source,
72 const NotificationDetails& details) { 74 const NotificationDetails& details) {
73 events_.push_back(Event(type, source, details)); 75 events_.push_back(Event(type, source, details));
74 } 76 }
OLDNEW
« no previous file with comments | « chrome/test/test_notification_tracker.h ('k') | chrome/test/thread_observer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698