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

Unified Diff: chrome/common/search/mock_searchbox.h

Issue 2086223002: Convert instant search messages to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/search/mock_searchbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/search/mock_searchbox.h
diff --git a/chrome/common/search/mock_searchbox.h b/chrome/common/search/mock_searchbox.h
new file mode 100644
index 0000000000000000000000000000000000000000..baaf455bb85c06cafd56dca28347095946f50402
--- /dev/null
+++ b/chrome/common/search/mock_searchbox.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
+#define CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
+
+#include "chrome/common/instant.mojom.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+class MockSearchBox : public chrome::mojom::SearchBox {
+ public:
+ MockSearchBox();
+ ~MockSearchBox();
+
+ MOCK_METHOD1(SetPageSequenceNumber, void(int));
+ MOCK_METHOD2(ChromeIdentityCheckResult, void(const base::string16&, bool));
+ MOCK_METHOD0(DetermineIfPageSupportsInstant, void());
+ MOCK_METHOD2(FocusChanged, void(OmniboxFocusState, OmniboxFocusChangeReason));
+ MOCK_METHOD1(HistorySyncCheckResult, void(bool));
+ MOCK_METHOD1(MostVisitedChanged,
+ void(const std::vector<InstantMostVisitedItem>&));
+ MOCK_METHOD1(SetInputInProgress, void(bool));
+ MOCK_METHOD1(SetSuggestionToPrefetch, void(const InstantSuggestion&));
+ MOCK_METHOD2(Submit,
+ void(const base::string16&, const EmbeddedSearchRequestParams&));
+ MOCK_METHOD1(ThemeChanged, void(const ThemeBackgroundInfo&));
+};
+
+
+#endif // CHROME_COMMON_SEARCH_MOCK_SEARCHBOX_H_
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/search/mock_searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698