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

Unified Diff: chrome/browser/system_monitor/test_removable_storage_notifications.cc

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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: chrome/browser/system_monitor/test_removable_storage_notifications.cc
diff --git a/chrome/browser/system_monitor/test_removable_storage_notifications.cc b/chrome/browser/system_monitor/test_removable_storage_notifications.cc
index 1a6c3a611e15ae0875d3d50f8f0f0a230555a02f..5da729bc1a18f2c76a704fb6f95bba9ec01af873 100644
--- a/chrome/browser/system_monitor/test_removable_storage_notifications.cc
+++ b/chrome/browser/system_monitor/test_removable_storage_notifications.cc
@@ -32,5 +32,21 @@ bool TestRemovableStorageNotifications::GetMTPStorageInfoFromDeviceId(
}
#endif
+void TestRemovableStorageNotifications::ProcessAttach(
+ const std::string& id,
+ const string16& name,
+ const FilePath::StringType& location) {
+ receiver()->ProcessAttach(id, name, location);
+}
+
+void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) {
+ receiver()->ProcessDetach(id);
+}
+
+RemovableStorageNotifications::Receiver*
+TestRemovableStorageNotifications::receiver() const {
+ return RemovableStorageNotifications::receiver();
+}
+
} // namespace test
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698