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

Side by Side Diff: components/search/search_android_unittest.cc

Issue 2513913002: Instant cleanup: Remove unused Android-only cmdline switches (Closed)
Patch Set: review Created 4 years, 1 month 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 | « components/search/search.cc ('k') | components/search/search_switches.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/search/search.h" 5 #include "components/search/search.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/search/search.h" 8 #include "components/search/search.h"
9 #include "components/search/search_switches.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
11 10
12 namespace search { 11 namespace search {
13 12
14 namespace { 13 namespace {
15 14
16 TEST(SearchTest, EmbeddedSearchAPIEnabled) { 15 TEST(SearchTest, EmbeddedSearchAPIEnabled) {
17 EXPECT_EQ(1ul, EmbeddedSearchPageVersion()); 16 EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
18 EXPECT_FALSE(IsInstantExtendedAPIEnabled()); 17 EXPECT_FALSE(IsInstantExtendedAPIEnabled());
19 base::CommandLine::ForCurrentProcess()->AppendSwitch(
20 switches::kEnableEmbeddedSearchAPI);
21 EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
22 EXPECT_TRUE(IsInstantExtendedAPIEnabled());
23 } 18 }
24 19
25 } // namespace 20 } // namespace
26 21
27 } // namespace chrome 22 } // namespace chrome
OLDNEW
« no previous file with comments | « components/search/search.cc ('k') | components/search/search_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698