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

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: 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 unified diff | Download patch | Annotate | Revision Log
« 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/search/search.h"
6
7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/statistics_recorder.h"
11 #include "components/search/search_switches.h"
12 #include "components/variations/entropy_provider.h"
13 #include "testing/gtest/include/gtest/gtest.h"
14
15 namespace chrome {
16
17 namespace {
18
19 TEST(SearchTest, EmbeddedSearchAPIEnabled) {
20 EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
21 EXPECT_FALSE(IsInstantExtendedAPIEnabled());
22 CommandLine::ForCurrentProcess()->AppendSwitch(
23 switches::kEnableEmbeddedSearchAPI);
24 EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
25 EXPECT_TRUE(IsInstantExtendedAPIEnabled());
26 }
27
28 } // namespace
29
30 } // 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