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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « chrome/test/render_view_test.h ('k') | content/browser/appcache/appcache_dispatcher_host.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) 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 #ifndef CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ 5 #ifndef CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_
6 #define CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ 6 #define CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 NotificationType type; 25 NotificationType type;
26 NotificationSource source; 26 NotificationSource source;
27 NotificationDetails details; 27 NotificationDetails details;
28 }; 28 };
29 29
30 // By default, it won't listen for any notifications. You'll need to call 30 // By default, it won't listen for any notifications. You'll need to call
31 // ListenFor for the notifications you are interested in. 31 // ListenFor for the notifications you are interested in.
32 TestNotificationTracker(); 32 TestNotificationTracker();
33 33
34 ~TestNotificationTracker(); 34 virtual ~TestNotificationTracker();
35 35
36 // Makes this object listen for the given notification with the given source. 36 // Makes this object listen for the given notification with the given source.
37 void ListenFor(NotificationType type, const NotificationSource& source); 37 void ListenFor(NotificationType type, const NotificationSource& source);
38 38
39 // Makes this object listen for notifications of the given type coming from 39 // Makes this object listen for notifications of the given type coming from
40 // any source. 40 // any source.
41 void ListenForAll(NotificationType type); 41 void ListenForAll(NotificationType type);
42 42
43 // Clears the list of events. 43 // Clears the list of events.
44 void Reset(); 44 void Reset();
(...skipping 28 matching lines...) Expand all
73 private: 73 private:
74 NotificationRegistrar registrar_; 74 NotificationRegistrar registrar_;
75 75
76 // Lists all received since last cleared, in the order they were received. 76 // Lists all received since last cleared, in the order they were received.
77 std::vector<Event> events_; 77 std::vector<Event> events_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(TestNotificationTracker); 79 DISALLOW_COPY_AND_ASSIGN(TestNotificationTracker);
80 }; 80 };
81 81
82 #endif // CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ 82 #endif // CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/test/render_view_test.h ('k') | content/browser/appcache/appcache_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698