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

Unified Diff: content/public/test/test_notification_tracker.cc

Issue 13533007: Test extension reloading behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/test_notification_tracker.cc
diff --git a/content/public/test/test_notification_tracker.cc b/content/public/test/test_notification_tracker.cc
index bf166e724ae2fdae6670e7383bc9d42b41bf1214..0137c01945aacd9e21c182cf1146d3924e0dc66e 100644
--- a/content/public/test/test_notification_tracker.cc
+++ b/content/public/test/test_notification_tracker.cc
@@ -34,6 +34,12 @@ void TestNotificationTracker::ListenFor(
registrar_.Add(this, type, source);
}
+void TestNotificationTracker::ListenForAll(
+ int type) {
+ registrar_.Add(this, type,
+ NotificationService::AllBrowserContextsAndSources());
+}
+
void TestNotificationTracker::Reset() {
events_.clear();
}
@@ -73,6 +79,13 @@ bool TestNotificationTracker::Check3AndReset(int type1,
return success;
}
+std::vector<int> TestNotificationTracker::GetTypes() const {
+ std::vector<int> types;
+ for (size_t i = 0; i < size(); ++i)
+ types.push_back(at(i).type);
+ return types;
+}
+
void TestNotificationTracker::Observe(
int type,
const NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698