diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:36:56 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:36:56 +0000 |
commit | 1b97bcce88e16eeb7590be24713f8c5ee772b659 (patch) | |
tree | 164489bc5f0181667b2c40f1f84c7b96575182d9 /ui | |
parent | 082c48471b86609a5dabc0bfcb27a7da35e3a5af (diff) | |
download | chromium_src-1b97bcce88e16eeb7590be24713f8c5ee772b659.zip chromium_src-1b97bcce88e16eeb7590be24713f8c5ee772b659.tar.gz chromium_src-1b97bcce88e16eeb7590be24713f8c5ee772b659.tar.bz2 |
Reland: cros: Show notification when low-power charger connected
First landed as https://codereview.chromium.org/17157007 and broke win_aura
Encourage the user to plug in the official charger.
Also extract FakeMessageCenter into a message_center_test_support target
so I can use it for a unit test.
BUG=249852
TEST=ash_unittests TrayPowerTest.*
TBR=mukai@chromium.org - previously reviewed
Review URL: https://codereview.chromium.org/17482007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/message_center/message_center.gyp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/ui/message_center/message_center.gyp b/ui/message_center/message_center.gyp index ee469d2..ef5a0cc 100644 --- a/ui/message_center/message_center.gyp +++ b/ui/message_center/message_center.gyp @@ -125,6 +125,23 @@ ], }, # target_name: message_center { + 'target_name': 'message_center_test_support', + 'type': 'static_library', + 'dependencies': [ + '../../base/base.gyp:base', + '../../base/base.gyp:test_support_base', + '../../skia/skia.gyp:skia', + '../ui.gyp:ui', + 'message_center', + ], + 'sources': [ + 'fake_message_center.h', + 'fake_message_center.cc', + 'fake_notifier_settings_provider.h', + 'fake_notifier_settings_provider.cc', + ], + }, # target_name: message_center_test_support + { 'target_name': 'message_center_unittests', 'type': 'executable', 'dependencies': [ @@ -135,6 +152,7 @@ '../ui.gyp:run_ui_unittests', '../ui.gyp:ui', 'message_center', + 'message_center_test_support', ], 'sources': [ 'cocoa/notification_controller_unittest.mm', @@ -146,10 +164,6 @@ 'cocoa/tray_view_controller_unittest.mm', 'message_center_tray_unittest.cc', 'message_center_impl_unittest.cc', - 'fake_message_center.h', - 'fake_message_center.cc', - 'fake_notifier_settings_provider.h', - 'fake_notifier_settings_provider.cc', 'notification_list_unittest.cc', 'test/run_all_unittests.cc', ], |