| 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 "base/strings/string_split.h" | 5 #include "base/strings/string_split.h" |
| 6 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" | 6 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" |
| 7 #include "chrome/browser/notifications/message_center_notification_manager.h" | 7 #include "chrome/browser/notifications/message_center_notification_manager.h" |
| 8 #include "chrome/browser/notifications/notification.h" | 8 #include "chrome/browser/notifications/notification.h" |
| 9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ~MockImageFetcher() override {} | 69 ~MockImageFetcher() override {} |
| 70 | 70 |
| 71 MOCK_METHOD3( | 71 MOCK_METHOD3( |
| 72 StartOrQueueNetworkRequest, | 72 StartOrQueueNetworkRequest, |
| 73 void(const std::string&, | 73 void(const std::string&, |
| 74 const GURL&, | 74 const GURL&, |
| 75 base::Callback<void(const std::string&, const gfx::Image&)>)); | 75 base::Callback<void(const std::string&, const gfx::Image&)>)); |
| 76 MOCK_METHOD1(SetImageFetcherDelegate, void(ImageFetcherDelegate*)); | 76 MOCK_METHOD1(SetImageFetcherDelegate, void(ImageFetcherDelegate*)); |
| 77 MOCK_METHOD1(SetDataUseServiceName, void(DataUseServiceName)); | 77 MOCK_METHOD1(SetDataUseServiceName, void(DataUseServiceName)); |
| 78 MOCK_METHOD1(SetDesiredImageFrameSize, void(const gfx::Size&)); | 78 MOCK_METHOD1(SetDesiredImageFrameSize, void(const gfx::Size&)); |
| 79 MOCK_METHOD0(DisableCookies, void()); |
| 79 MOCK_METHOD0(GetImageDecoder, image_fetcher::ImageDecoder*()); | 80 MOCK_METHOD0(GetImageDecoder, image_fetcher::ImageDecoder*()); |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(MockImageFetcher); | 83 DISALLOW_COPY_AND_ASSIGN(MockImageFetcher); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace | 86 } // namespace |
| 86 | 87 |
| 87 class HatsNotificationControllerTest : public BrowserWithTestWindowTest { | 88 class HatsNotificationControllerTest : public BrowserWithTestWindowTest { |
| 88 public: | 89 public: |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > | 275 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > |
| 275 base::Time::FromInternalValue(now_timestamp)); | 276 base::Time::FromInternalValue(now_timestamp)); |
| 276 | 277 |
| 277 // Destructor for HatsController removes self from observer list. | 278 // Destructor for HatsController removes self from observer list. |
| 278 EXPECT_CALL(mock_network_portal_detector_, | 279 EXPECT_CALL(mock_network_portal_detector_, |
| 279 RemoveObserver(hats_notification_controller.get())) | 280 RemoveObserver(hats_notification_controller.get())) |
| 280 .Times(1); | 281 .Times(1); |
| 281 } | 282 } |
| 282 | 283 |
| 283 } // namespace chromeos | 284 } // namespace chromeos |
| OLD | NEW |