Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_delegate_mock.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698