OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_EXTENSIONS_APP_NOTIFICATION_TEST_UTIL_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_TEST_UTIL_H_ | |
7 | |
8 #include "chrome/browser/extensions/app_notification.h" | |
9 | |
10 namespace extensions { | |
11 class AppNotificationManager; | |
12 } | |
13 | |
14 namespace app_notification_test_util { | |
15 | |
16 // Does a deep equality check of two AppNotificationList's, adding a gtest | |
17 // failure and logging at the first difference found. | |
18 void ExpectListsEqual(const extensions::AppNotificationList& one, | |
19 const extensions::AppNotificationList& two); | |
20 | |
21 // Helper for inserting |count| dummy notifications with |prefix| in their | |
22 // title and body into |list|. | |
23 void AddNotifications(extensions::AppNotificationList* list, | |
24 const std::string& extension_id, | |
25 int count, | |
26 const std::string& prefix); | |
27 | |
28 // Adds a copy of each item in |list| to |manager|. | |
29 bool AddCopiesFromList(extensions::AppNotificationManager* manager, | |
30 const extensions::AppNotificationList& list); | |
31 | |
32 } // namespace app_notification_test_util | |
33 | |
34 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_TEST_UTIL_H_ | |
OLD | NEW |