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

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

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « content/test/content_test_suite.cc ('k') | no next file » | 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) 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 "content/test/test_notification_tracker.h" 5 #include "content/test/test_notification_tracker.h"
6 6
7 #include "content/common/notification_service.h" 7 #include "content/public/browser/notification_service.h"
8 #include "content/public/browser/notification_types.h" 8 #include "content/public/browser/notification_types.h"
9 9
10 TestNotificationTracker::Event::Event() 10 TestNotificationTracker::Event::Event()
11 : type(content::NOTIFICATION_ALL), 11 : type(content::NOTIFICATION_ALL),
12 source(NotificationService::AllSources()), 12 source(content::NotificationService::AllSources()),
13 details(NotificationService::NoDetails()) { 13 details(content::NotificationService::NoDetails()) {
14 } 14 }
15 TestNotificationTracker::Event::Event(int t, 15 TestNotificationTracker::Event::Event(int t,
16 content::NotificationSource s, 16 content::NotificationSource s,
17 content::NotificationDetails d) 17 content::NotificationDetails d)
18 : type(t), 18 : type(t),
19 source(s), 19 source(s),
20 details(d) { 20 details(d) {
21 } 21 }
22 22
23 TestNotificationTracker::TestNotificationTracker() { 23 TestNotificationTracker::TestNotificationTracker() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Reset(); 70 Reset();
71 return success; 71 return success;
72 } 72 }
73 73
74 void TestNotificationTracker::Observe( 74 void TestNotificationTracker::Observe(
75 int type, 75 int type,
76 const content::NotificationSource& source, 76 const content::NotificationSource& source,
77 const content::NotificationDetails& details) { 77 const content::NotificationDetails& details) {
78 events_.push_back(Event(type, source, details)); 78 events_.push_back(Event(type, source, details));
79 } 79 }
OLDNEW
« no previous file with comments | « content/test/content_test_suite.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698