| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/hats/hats_notification_controller.h" |
| 6 |
| 5 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
| 6 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" | |
| 7 #include "chrome/browser/notifications/message_center_notification_manager.h" | 8 #include "chrome/browser/notifications/message_center_notification_manager.h" |
| 8 #include "chrome/browser/notifications/notification.h" | 9 #include "chrome/browser/notifications/notification.h" |
| 9 #include "chrome/browser/notifications/notification_ui_manager.h" | 10 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/test/base/browser_with_test_window_test.h" | 12 #include "chrome/test/base/browser_with_test_window_test.h" |
| 12 #include "chrome/test/base/testing_browser_process.h" | 13 #include "chrome/test/base/testing_browser_process.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
| 14 #include "chrome/test/base/testing_profile_manager.h" | 15 #include "chrome/test/base/testing_profile_manager.h" |
| 15 #include "chromeos/network/network_state.h" | 16 #include "chromeos/network/network_state.h" |
| 16 #include "chromeos/network/portal_detector/network_portal_detector.h" | 17 #include "chromeos/network/portal_detector/network_portal_detector.h" |
| 17 #include "components/image_fetcher/image_fetcher.h" | 18 #include "components/image_fetcher/core/image_fetcher.h" |
| 18 #include "components/image_fetcher/image_fetcher_delegate.h" | 19 #include "components/image_fetcher/core/image_fetcher_delegate.h" |
| 19 #include "components/image_fetcher/request_metadata.h" | 20 #include "components/image_fetcher/core/request_metadata.h" |
| 20 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
| 21 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
| 22 #include "content/public/test/test_utils.h" | 23 #include "content/public/test/test_utils.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "ui/gfx/image/image_unittest_util.h" | 26 #include "ui/gfx/image/image_unittest_util.h" |
| 26 #include "ui/message_center/fake_message_center_tray_delegate.h" | 27 #include "ui/message_center/fake_message_center_tray_delegate.h" |
| 27 #include "ui/message_center/message_center.h" | 28 #include "ui/message_center/message_center.h" |
| 28 | 29 |
| 29 using testing::_; | 30 using testing::_; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > | 278 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > |
| 278 base::Time::FromInternalValue(now_timestamp)); | 279 base::Time::FromInternalValue(now_timestamp)); |
| 279 | 280 |
| 280 // Destructor for HatsController removes self from observer list. | 281 // Destructor for HatsController removes self from observer list. |
| 281 EXPECT_CALL(mock_network_portal_detector_, | 282 EXPECT_CALL(mock_network_portal_detector_, |
| 282 RemoveObserver(hats_notification_controller.get())) | 283 RemoveObserver(hats_notification_controller.get())) |
| 283 .Times(1); | 284 .Times(1); |
| 284 } | 285 } |
| 285 | 286 |
| 286 } // namespace chromeos | 287 } // namespace chromeos |
| OLD | NEW |