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

Unified Diff: chrome/browser/notifications/notification_platform_bridge_linux.h

Issue 2849003002: Linux native notifications: Add initial unit test (Closed)
Patch Set: address thestig's comments Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_platform_bridge_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_platform_bridge_linux.h
diff --git a/chrome/browser/notifications/notification_platform_bridge_linux.h b/chrome/browser/notifications/notification_platform_bridge_linux.h
index b824ff7c3e7314db2a2b78e7d19a61db48280a01..37d32a4be0af174ccdaa0b24942c9d600fd39429 100644
--- a/chrome/browser/notifications/notification_platform_bridge_linux.h
+++ b/chrome/browser/notifications/notification_platform_bridge_linux.h
@@ -12,6 +12,10 @@
class NotificationPlatformBridgeLinuxImpl;
+namespace dbus {
+class Bus;
+}
+
class NotificationPlatformBridgeLinux : public NotificationPlatformBridge {
public:
NotificationPlatformBridgeLinux();
@@ -33,6 +37,13 @@ class NotificationPlatformBridgeLinux : public NotificationPlatformBridge {
void SetReadyCallback(NotificationBridgeReadyCallback callback) override;
private:
+ friend class NotificationPlatformBridgeLinuxTest;
+
+ // Constructor only used in unit testing.
+ explicit NotificationPlatformBridgeLinux(scoped_refptr<dbus::Bus> bus);
+
+ void CleanUp();
+
scoped_refptr<NotificationPlatformBridgeLinuxImpl> impl_;
DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux);
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_platform_bridge_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698