OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/prefs/scoped_user_pref_update.h" | 11 #include "base/prefs/scoped_user_pref_update.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
14 #include "chrome/browser/background/background_contents.h" | 15 #include "chrome/browser/background/background_contents.h" |
15 #include "chrome/browser/background/background_contents_service.h" | 16 #include "chrome/browser/background/background_contents_service.h" |
16 #include "chrome/browser/background/background_contents_service_factory.h" | 17 #include "chrome/browser/background/background_contents_service_factory.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/ui/browser_list.h" | 19 #include "chrome/browser/ui/browser_list.h" |
19 #include "chrome/common/extensions/extension_test_util.h" | 20 #include "chrome/common/extensions/extension_test_util.h" |
20 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
21 #include "chrome/test/base/browser_with_test_window_test.h" | 22 #include "chrome/test/base/browser_with_test_window_test.h" |
22 #include "chrome/test/base/testing_browser_process.h" | 23 #include "chrome/test/base/testing_browser_process.h" |
23 #include "chrome/test/base/testing_profile.h" | 24 #include "chrome/test/base/testing_profile.h" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 CreateCrashNotification(extension); | 391 CreateCrashNotification(extension); |
391 CreateCrashNotification(extension); | 392 CreateCrashNotification(extension); |
392 | 393 |
393 message_center::MessageCenter* message_center = | 394 message_center::MessageCenter* message_center = |
394 message_center::MessageCenter::Get(); | 395 message_center::MessageCenter::Get(); |
395 message_center::NotificationList::Notifications notifications = | 396 message_center::NotificationList::Notifications notifications = |
396 message_center->GetVisibleNotifications(); | 397 message_center->GetVisibleNotifications(); |
397 ASSERT_EQ(1u, notifications.size()); | 398 ASSERT_EQ(1u, notifications.size()); |
398 } | 399 } |
399 #endif | 400 #endif |
OLD | NEW |