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

Side by Side Diff: chrome/common/search/mock_searchbox.h

Issue 2852693002: Remove DetermineIfPageSupportsInstant and all its plumbing (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « chrome/common/instant.mojom ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_ 5 #ifndef CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
6 #define CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_ 6 #define CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
7 7
8 #include "chrome/common/instant.mojom.h" 8 #include "chrome/common/instant.mojom.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 class MockSearchBox : public chrome::mojom::SearchBox { 11 class MockSearchBox : public chrome::mojom::SearchBox {
12 public: 12 public:
13 MockSearchBox(); 13 MockSearchBox();
14 ~MockSearchBox(); 14 ~MockSearchBox();
15 15
16 MOCK_METHOD1(SetPageSequenceNumber, void(int)); 16 MOCK_METHOD1(SetPageSequenceNumber, void(int));
17 MOCK_METHOD2(ChromeIdentityCheckResult, void(const base::string16&, bool)); 17 MOCK_METHOD2(ChromeIdentityCheckResult, void(const base::string16&, bool));
18 MOCK_METHOD0(DetermineIfPageSupportsInstant, void());
19 MOCK_METHOD2(FocusChanged, void(OmniboxFocusState, OmniboxFocusChangeReason)); 18 MOCK_METHOD2(FocusChanged, void(OmniboxFocusState, OmniboxFocusChangeReason));
20 MOCK_METHOD1(HistorySyncCheckResult, void(bool)); 19 MOCK_METHOD1(HistorySyncCheckResult, void(bool));
21 MOCK_METHOD1(MostVisitedChanged, 20 MOCK_METHOD1(MostVisitedChanged,
22 void(const std::vector<InstantMostVisitedItem>&)); 21 void(const std::vector<InstantMostVisitedItem>&));
23 MOCK_METHOD1(SetInputInProgress, void(bool)); 22 MOCK_METHOD1(SetInputInProgress, void(bool));
24 MOCK_METHOD1(SetSuggestionToPrefetch, void(const InstantSuggestion&)); 23 MOCK_METHOD1(SetSuggestionToPrefetch, void(const InstantSuggestion&));
25 MOCK_METHOD2(Submit, 24 MOCK_METHOD2(Submit,
26 void(const base::string16&, const EmbeddedSearchRequestParams&)); 25 void(const base::string16&, const EmbeddedSearchRequestParams&));
27 MOCK_METHOD1(ThemeChanged, void(const ThemeBackgroundInfo&)); 26 MOCK_METHOD1(ThemeChanged, void(const ThemeBackgroundInfo&));
28 }; 27 };
29 28
30 29
31 #endif // CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_ 30 #endif // CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/common/instant.mojom ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698