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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 MockImageFetcher() {} | 68 MockImageFetcher() {} |
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 | 79 |
79 private: | 80 private: |
80 DISALLOW_COPY_AND_ASSIGN(MockImageFetcher); | 81 DISALLOW_COPY_AND_ASSIGN(MockImageFetcher); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace | 84 } // namespace |
84 | 85 |
85 class HatsNotificationControllerTest : public BrowserWithTestWindowTest { | 86 class HatsNotificationControllerTest : public BrowserWithTestWindowTest { |
86 public: | 87 public: |
87 HatsNotificationControllerTest() {} | 88 HatsNotificationControllerTest() {} |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > | 273 ASSERT_TRUE(base::Time::FromInternalValue(new_timestamp) > |
273 base::Time::FromInternalValue(now_timestamp)); | 274 base::Time::FromInternalValue(now_timestamp)); |
274 | 275 |
275 // Destructor for HatsController removes self from observer list. | 276 // Destructor for HatsController removes self from observer list. |
276 EXPECT_CALL(mock_network_portal_detector_, | 277 EXPECT_CALL(mock_network_portal_detector_, |
277 RemoveObserver(hats_notification_controller.get())) | 278 RemoveObserver(hats_notification_controller.get())) |
278 .Times(1); | 279 .Times(1); |
279 } | 280 } |
280 | 281 |
281 } // namespace chromeos | 282 } // namespace chromeos |
OLD | NEW |