Index: chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller_unittest.mm |
index 4c922c360a325608f756f1b76cebcac201fd50e7..c1efcb27c6949562d5d6d85d19bfbe6ec5fd93f6 100644 |
--- a/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller_unittest.mm |
@@ -16,6 +16,9 @@ class MockChromeToMobileService : public ChromeToMobileService { |
// A utility function to add mock devices. |
void AddDevices(size_t count); |
+ // ChromeToMobileService overrides: |
+ virtual const base::ListValue* GetMobiles() const OVERRIDE; |
+ |
MOCK_METHOD0(RequestMobileListUpdate, void()); |
MOCK_METHOD2(GenerateSnapshot, void(Browser* browser, |
base::WeakPtr<Observer> observer)); |
@@ -25,6 +28,9 @@ class MockChromeToMobileService : public ChromeToMobileService { |
base::WeakPtr<Observer> observer)); |
MOCK_METHOD1(DeleteSnapshot, void(const FilePath& snapshot)); |
MOCK_CONST_METHOD1(LogMetric, void(ChromeToMobileService::Metric)); |
+ |
+ // A set of mock mobile devices, kept in lieu of the list in profile prefs. |
+ base::ListValue mobiles_; |
}; |
void MockChromeToMobileService::AddDevices(size_t count) { |
@@ -35,6 +41,10 @@ void MockChromeToMobileService::AddDevices(size_t count) { |
} |
} |
+const base::ListValue* MockChromeToMobileService::GetMobiles() const { |
+ return &mobiles_; |
+} |
+ |
namespace { |
class ChromeToMobileBubbleControllerTest : public CocoaTest { |