OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <gmock/gmock.h> | 5 #include <gmock/gmock.h> |
6 #include <gtest/gtest.h> | 6 #include <gtest/gtest.h> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 FileBrowserNotifications::DEVICE_FAIL, StrEq(notification_path), | 205 FileBrowserNotifications::DEVICE_FAIL, StrEq(notification_path), |
206 String16Equals(IDS_DEVICE_UNKNOWN_MESSAGE, device_label))); | 206 String16Equals(IDS_DEVICE_UNKNOWN_MESSAGE, device_label))); |
207 EXPECT_CALL(*mocked_notifications, HideNotification( | 207 EXPECT_CALL(*mocked_notifications, HideNotification( |
208 FileBrowserNotifications::DEVICE_FAIL, notification_path)); | 208 FileBrowserNotifications::DEVICE_FAIL, notification_path)); |
209 EXPECT_CALL(*mocked_notifications, ShowNotificationWithMessage( | 209 EXPECT_CALL(*mocked_notifications, ShowNotificationWithMessage( |
210 FileBrowserNotifications::DEVICE_FAIL, StrEq(notification_path), | 210 FileBrowserNotifications::DEVICE_FAIL, StrEq(notification_path), |
211 String16Equals(IDS_MULTIPART_DEVICE_UNSUPPORTED_MESSAGE, | 211 String16Equals(IDS_MULTIPART_DEVICE_UNSUPPORTED_MESSAGE, |
212 device_label))); | 212 device_label))); |
213 } | 213 } |
214 | 214 |
215 notifications->ManageNotificationsOnMountCompleted(notification_path, | 215 notifications->ManageNotificationsOnMountCompleted(notification_path, |
216 device_label, true, false, false); | 216 device_label, true, false, false); |
217 notifications->ManageNotificationsOnMountCompleted(notification_path, | 217 notifications->ManageNotificationsOnMountCompleted(notification_path, |
218 device_label, false, false, false); | 218 device_label, false, false, false); |
219 notifications->ManageNotificationsOnMountCompleted(notification_path, | 219 notifications->ManageNotificationsOnMountCompleted(notification_path, |
220 device_label, false, false, false); | 220 device_label, false, false, false); |
221 notifications->ManageNotificationsOnMountCompleted(notification_path, | 221 notifications->ManageNotificationsOnMountCompleted(notification_path, |
222 device_label, false, false, false); | 222 device_label, false, false, false); |
223 } | 223 } |
224 | 224 |
225 } // namespace chromeos. | 225 } // namespace chromeos. |
OLD | NEW |