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

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 4 years, 2 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
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..dbe9d8f0aa93d56c40ab133230457a4dec957500
--- /dev/null
+++ b/chrome/common/search/mock_searchbox.h
@@ -0,0 +1,25 @@
+// 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.
+
+#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&));
+};

Powered by Google App Engine
This is Rietveld 408576698