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

Side by Side Diff: chrome/browser/background/background_contents_service_unittest.cc

Issue 793403003: Move BackgroundContents to the directory in which it belongs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pageidcrash
Patch Set: rebase Created 6 years 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 (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" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/prefs/scoped_user_pref_update.h" 12 #include "base/prefs/scoped_user_pref_update.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.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/tab_contents/background_contents.h"
19 #include "chrome/browser/ui/browser_list.h" 19 #include "chrome/browser/ui/browser_list.h"
20 #include "chrome/common/extensions/extension_test_util.h" 20 #include "chrome/common/extensions/extension_test_util.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/test/base/browser_with_test_window_test.h" 22 #include "chrome/test/base/browser_with_test_window_test.h"
23 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
24 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
25 #include "chrome/test/base/testing_profile_manager.h" 25 #include "chrome/test/base/testing_profile_manager.h"
26 #include "content/public/browser/notification_service.h" 26 #include "content/public/browser/notification_service.h"
27 #include "content/public/test/test_browser_thread.h" 27 #include "content/public/test/test_browser_thread.h"
28 #include "extensions/common/extension.h" 28 #include "extensions/common/extension.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 CreateCrashNotification(extension); 385 CreateCrashNotification(extension);
386 CreateCrashNotification(extension); 386 CreateCrashNotification(extension);
387 387
388 message_center::MessageCenter* message_center = 388 message_center::MessageCenter* message_center =
389 message_center::MessageCenter::Get(); 389 message_center::MessageCenter::Get();
390 message_center::NotificationList::Notifications notifications = 390 message_center::NotificationList::Notifications notifications =
391 message_center->GetVisibleNotifications(); 391 message_center->GetVisibleNotifications();
392 ASSERT_EQ(1u, notifications.size()); 392 ASSERT_EQ(1u, notifications.size());
393 } 393 }
394 #endif 394 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698