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

Side by Side Diff: chrome/browser/extensions/app_notification_test_util.h

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698