| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_MOCK_H_ | |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_MOCK_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h" | |
| 9 #include "testing/gmock/include/gmock/gmock.h" | |
| 10 | |
| 11 class WebIntentPickerDelegateMock : public WebIntentPickerDelegate { | |
| 12 public: | |
| 13 WebIntentPickerDelegateMock(); | |
| 14 virtual ~WebIntentPickerDelegateMock(); | |
| 15 | |
| 16 MOCK_METHOD3(OnServiceChosen, | |
| 17 void(const GURL& url, | |
| 18 webkit_glue::WebIntentServiceData::Disposition disposition, | |
| 19 WebIntentPickerDelegate::DefaultsUsage suppress_defaults)); | |
| 20 MOCK_METHOD2(CreateWebContentsForInlineDisposition, | |
| 21 content::WebContents*(Profile* profile, const GURL& url)); | |
| 22 MOCK_METHOD1(OnExtensionInstallRequested, void(const std::string& id)); | |
| 23 MOCK_METHOD2(OnExtensionLinkClicked, | |
| 24 void(const std::string& id, | |
| 25 WindowOpenDisposition disposition)); | |
| 26 MOCK_METHOD1(OnSuggestionsLinkClicked, | |
| 27 void(WindowOpenDisposition disposition)); | |
| 28 MOCK_METHOD0(OnUserCancelledPickerDialog, void()); | |
| 29 MOCK_METHOD0(OnChooseAnotherService, void()); | |
| 30 MOCK_METHOD0(OnClosing, void()); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_MOCK_H_ | |
| OLD | NEW |