| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/power/peripheral_battery_observer.h" | 5 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/notifications/notification_ui_manager.h" | 11 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 13 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" |
| 14 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 ProfileManager::GetPrimaryUserProfile())) != NULL); | 169 ProfileManager::GetPrimaryUserProfile())) != NULL); |
| 169 | 170 |
| 170 observer_->RemoveBattery(kTestBatteryAddress); | 171 observer_->RemoveBattery(kTestBatteryAddress); |
| 171 EXPECT_FALSE(notification_manager->FindById( | 172 EXPECT_FALSE(notification_manager->FindById( |
| 172 kTestBatteryAddress, | 173 kTestBatteryAddress, |
| 173 NotificationUIManager::GetProfileID( | 174 NotificationUIManager::GetProfileID( |
| 174 ProfileManager::GetPrimaryUserProfile())) != NULL); | 175 ProfileManager::GetPrimaryUserProfile())) != NULL); |
| 175 } | 176 } |
| 176 | 177 |
| 177 } // namespace chromeos | 178 } // namespace chromeos |
| OLD | NEW |