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

Unified Diff: chrome/browser/search/search_android_unittest.cc

Issue 393173002: Moves some functions in search.h to components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fix 3 Created 6 years, 5 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/browser/search/search.cc ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search_android_unittest.cc
diff --git a/chrome/browser/search/search_android_unittest.cc b/chrome/browser/search/search_android_unittest.cc
index 04720db3ca8988bb980d9548aa01557b956ca49c..9d168d1ee8ba88378163a73602defa0efc4d4d8f 100644
--- a/chrome/browser/search/search_android_unittest.cc
+++ b/chrome/browser/search/search_android_unittest.cc
@@ -9,6 +9,8 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/statistics_recorder.h"
#include "chrome/common/chrome_switches.h"
+#include "components/search/search.h"
+#include "components/search/search_switches.h"
#include "components/variations/entropy_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,15 +18,6 @@ namespace chrome {
namespace {
-TEST(SearchTest, EmbeddedSearchAPIEnabled) {
- EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
- EXPECT_FALSE(IsInstantExtendedAPIEnabled());
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableEmbeddedSearchAPI);
- EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
- EXPECT_TRUE(IsInstantExtendedAPIEnabled());
-}
-
TEST(SearchTest, QueryExtractionEnabled) {
// Query extraction is always enabled on mobile.
EXPECT_TRUE(IsQueryExtractionEnabled());
« no previous file with comments | « chrome/browser/search/search.cc ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698