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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
7 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
8 #include "base/test/test_timeouts.h" 7 #include "base/test/test_timeouts.h"
9 #include "base/values.h" 8 #include "base/values.h"
10 #include "build/build_config.h" 9 #include "build/build_config.h"
11 #include "chrome/browser/notifications/message_center_notification_manager.h" 10 #include "chrome/browser/notifications/message_center_notification_manager.h"
12 #include "chrome/browser/notifications/notification.h" 11 #include "chrome/browser/notifications/notification.h"
13 #include "chrome/browser/notifications/notification_test_util.h" 12 #include "chrome/browser/notifications/notification_test_util.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "chrome/test/base/browser_with_test_window_test.h" 14 #include "chrome/test/base/browser_with_test_window_test.h"
16 #include "chrome/test/base/scoped_testing_local_state.h" 15 #include "chrome/test/base/scoped_testing_local_state.h"
17 #include "chrome/test/base/testing_browser_process.h" 16 #include "chrome/test/base/testing_browser_process.h"
18 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
19 #include "chrome/test/base/testing_profile_manager.h" 18 #include "chrome/test/base/testing_profile_manager.h"
19 #include "components/prefs/testing_pref_service.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "ui/message_center/fake_message_center_tray_delegate.h" 22 #include "ui/message_center/fake_message_center_tray_delegate.h"
23 #include "ui/message_center/message_center_impl.h" 23 #include "ui/message_center/message_center_impl.h"
24 #include "ui/message_center/message_center_tray.h" 24 #include "ui/message_center/message_center_tray.h"
25 #include "ui/message_center/message_center_types.h" 25 #include "ui/message_center/message_center_types.h"
26 #include "ui/message_center/notification_types.h" 26 #include "ui/message_center/notification_types.h"
27 #include "ui/message_center/notifier_settings.h" 27 #include "ui/message_center/notifier_settings.h"
28 28
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 EXPECT_EQ(0u, message_center()->NotificationCount()); 131 EXPECT_EQ(0u, message_center()->NotificationCount());
132 notification_manager()->Add(GetANotification("test"), &profile); 132 notification_manager()->Add(GetANotification("test"), &profile);
133 EXPECT_EQ(1u, message_center()->NotificationCount()); 133 EXPECT_EQ(1u, message_center()->NotificationCount());
134 notification_manager()->Update(GetANotification("test"), &profile); 134 notification_manager()->Update(GetANotification("test"), &profile);
135 EXPECT_EQ(1u, message_center()->NotificationCount()); 135 EXPECT_EQ(1u, message_center()->NotificationCount());
136 chrome::MultiUserWindowManager::DeleteInstance(); 136 chrome::MultiUserWindowManager::DeleteInstance();
137 } 137 }
138 #endif 138 #endif
139 139
140 } // namespace message_center 140 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698