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

Side by Side Diff: components/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: gn 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 unified diff | Download patch | Annotate | Revision Log
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 "chrome/browser/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 "chrome/common/chrome_switches.h" 8 #include "components/search/search_switches.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 namespace { 13 namespace {
14 14
15 TEST(SearchTest, EmbeddedSearchAPIEnabled) { 15 TEST(SearchTest, EmbeddedSearchAPIEnabled) {
16 EXPECT_EQ(1ul, EmbeddedSearchPageVersion()); 16 EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
17 EXPECT_FALSE(IsInstantExtendedAPIEnabled()); 17 EXPECT_FALSE(IsInstantExtendedAPIEnabled());
18 CommandLine::ForCurrentProcess()->AppendSwitch( 18 CommandLine::ForCurrentProcess()->AppendSwitch(
19 switches::kEnableEmbeddedSearchAPI); 19 switches::kEnableEmbeddedSearchAPI);
20 EXPECT_EQ(2ul, EmbeddedSearchPageVersion()); 20 EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
21 EXPECT_TRUE(IsInstantExtendedAPIEnabled()); 21 EXPECT_TRUE(IsInstantExtendedAPIEnabled());
22 } 22 }
23 23
24 } // namespace 24 } // namespace
25 25
26 } // namespace chrome 26 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698