Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_APP_NOTIFICATION_HELPER_H_ | |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_APP_NOTIFICATION_HELPER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <map> | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/string16.h" | |
| 13 | |
| 14 class AppNotification; | |
| 15 class AppNotificationManager; | |
| 16 | |
| 17 typedef std::map<std::string, const AppNotification*> GUIDToTURLMap; | |
|
asargent_no_longer_on_chrome
2011/12/03 05:34:30
nit: What's a TURL? =)
Should this be named "GUID
| |
| 18 | |
| 19 namespace app_notification_helper { | |
| 20 | |
| 21 // Used to access the search engines within a particular sync profile. | |
|
Munjal (Google)
2011/12/03 05:03:49
Remove reference to "search engine" in comments. H
| |
| 22 AppNotificationManager* GetServiceForProfile(int index); | |
|
Raghu Simha
2011/12/05 18:33:56
Rename to GetAppNotificationManager().
| |
| 23 | |
| 24 // Used to access the search engines within the verifier sync profile. | |
| 25 AppNotificationManager* GetVerifierService(); | |
|
Raghu Simha
2011/12/05 18:33:56
GetVerifierAppNotificationManager().
| |
| 26 | |
| 27 // Compared a single AppNotificationManager for a given profile to the verifier. | |
|
Munjal (Google)
2011/12/03 05:03:49
Nit: Compares
| |
| 28 // Retrns true iff their user-visible fields match. | |
|
Munjal (Google)
2011/12/03 05:03:49
Nit: Returns
| |
| 29 bool ServiceMatchesVerifier(int profile, const std::string& extension_id); | |
| 30 | |
| 31 // Returns true iff the major user-visible fields of |not1| and |not2| match. | |
| 32 bool AppNotificationMatch(const AppNotification* not1, | |
|
Raghu Simha
2011/12/05 18:33:56
nit: Rename to AppNotificationsMatch().
| |
| 33 const AppNotification* not2); | |
| 34 | |
| 35 // Add a notification based on the seed at index |profile| and the | |
| 36 // verifier if it is used. | |
| 37 void AddNotification(int profile, int seed); | |
|
Raghu Simha
2011/12/05 18:33:56
nit: Rename to AddAppNotification().
| |
| 38 | |
| 39 // Create an AppNotification with some test values based on |seed|. | |
| 40 // The caller owns the returned AppNotification*. | |
|
Munjal (Google)
2011/12/03 05:03:49
Nit: AppNotification* -> AppNotification.
| |
| 41 AppNotification* CreateTestAppNotification(int seed); | |
|
Raghu Simha
2011/12/05 18:33:56
Nit: Add a blank line here.
| |
| 42 } // namespace app_notification_helper | |
| 43 | |
| 44 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_APP_NOTIFICATION_HELPER_H_ | |
| 45 | |
|
Raghu Simha
2011/12/05 18:33:56
nit: Delete extra blank line.
| |
| OLD | NEW |