|
Initialize the message center as part of the testing browser process
This allows us to remove a bunch of unnecessary initialize calls
More importantly it allows us to remove test specific logic
(see platform_notification_service_impl.cc) that is currently
preventing us from testing those methods.
This involves several other changes
some (but not all) ash tests depend on message center but not on the
testing browser process, the messsage center is initialized in the
test suite for those tests.
The browser process test uses both the testing and the real process..
A few tests were failing now that the message center lingers for longer
They were fixed by re-ordering the tear down sequence.
BUG=
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+60 lines, -66 lines) |
Patch |
 |
M |
ash/test/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/ash_interactive_ui_test_base.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_helper.cc
|
View
|
|
3 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_suite.cc
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/background/background_contents_service_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/background/background_mode_manager_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_process_impl.h
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_process_impl.cc
|
View
|
|
4 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_process_impl_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/network_state_notifier_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/status/data_promo_notification_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/ui/low_disk_notification_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
|
chrome/browser/download/notification/download_item_notification_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/message_center_notifications_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification_display_service_factory.cc
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification_ui_manager_desktop.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/platform_notification_service_impl.cc
|
View
|
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
chrome/browser/ui/tab_contents/tab_contents_iterator_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/usb/web_usb_detector_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_browser_process.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/view_event_test_platform_part_chromeos.cc
|
View
|
|
3 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
Total messages: 17 (5 generated)
|