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

Side by Side Diff: chrome/browser/notifications/message_center_notifications_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/prefs/testing_pref_service.h" 6 #include "base/prefs/testing_pref_service.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "base/test/test_timeouts.h" 8 #include "base/test/test_timeouts.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "build/build_config.h"
10 #include "chrome/browser/notifications/message_center_notification_manager.h" 11 #include "chrome/browser/notifications/message_center_notification_manager.h"
11 #include "chrome/browser/notifications/notification.h" 12 #include "chrome/browser/notifications/notification.h"
12 #include "chrome/browser/notifications/notification_test_util.h" 13 #include "chrome/browser/notifications/notification_test_util.h"
13 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
14 #include "chrome/test/base/browser_with_test_window_test.h" 15 #include "chrome/test/base/browser_with_test_window_test.h"
15 #include "chrome/test/base/scoped_testing_local_state.h" 16 #include "chrome/test/base/scoped_testing_local_state.h"
16 #include "chrome/test/base/testing_browser_process.h" 17 #include "chrome/test/base/testing_browser_process.h"
17 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
18 #include "chrome/test/base/testing_profile_manager.h" 19 #include "chrome/test/base/testing_profile_manager.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 EXPECT_EQ(0u, message_center()->NotificationCount()); 131 EXPECT_EQ(0u, message_center()->NotificationCount());
131 notification_manager()->Add(GetANotification("test"), &profile); 132 notification_manager()->Add(GetANotification("test"), &profile);
132 EXPECT_EQ(1u, message_center()->NotificationCount()); 133 EXPECT_EQ(1u, message_center()->NotificationCount());
133 notification_manager()->Update(GetANotification("test"), &profile); 134 notification_manager()->Update(GetANotification("test"), &profile);
134 EXPECT_EQ(1u, message_center()->NotificationCount()); 135 EXPECT_EQ(1u, message_center()->NotificationCount());
135 chrome::MultiUserWindowManager::DeleteInstance(); 136 chrome::MultiUserWindowManager::DeleteInstance();
136 } 137 }
137 #endif 138 #endif
138 139
139 } // namespace message_center 140 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698