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

Unified Diff: chrome/browser/chromeos/hats/hats_notification_controller.h

Issue 2169223002: Implements unittests for hats notification controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements unittests for hats notification controller Created 4 years, 5 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/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/hats/hats_notification_controller.h
diff --git a/chrome/browser/chromeos/hats/hats_notification_controller.h b/chrome/browser/chromeos/hats/hats_notification_controller.h
index 20d36a5fd14c63d871ae57744f3d286c7fd5d48c..059f4a3921a29e940377b0fda66e71115c3d2a06 100644
--- a/chrome/browser/chromeos/hats/hats_notification_controller.h
+++ b/chrome/browser/chromeos/hats/hats_notification_controller.h
@@ -37,6 +37,18 @@ class HatsNotificationController : public NotificationDelegate,
static bool ShouldShowSurveyToProfile(Profile* profile);
private:
+ friend class HatsNotificationControllerTest;
+ FRIEND_TEST_ALL_PREFIXES(HatsNotificationControllerTest,
+ NewDevice_ShouldNotShowNotification);
+ FRIEND_TEST_ALL_PREFIXES(HatsNotificationControllerTest,
+ OldDevice_ShouldShowNotification);
+ FRIEND_TEST_ALL_PREFIXES(HatsNotificationControllerTest,
+ NoInternet_DoNotShowNotification);
+ FRIEND_TEST_ALL_PREFIXES(HatsNotificationControllerTest,
+ InternetConnected_ShowNotification);
+ FRIEND_TEST_ALL_PREFIXES(HatsNotificationControllerTest,
+ DismissNotification_ShouldUpdatePref);
+
~HatsNotificationController() override;
// NotificationDelegate overrides:
« no previous file with comments | « no previous file | chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698