OLD | NEW |
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 Loading... |
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 |
OLD | NEW |