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

Side by Side Diff: chrome/browser/search/search_android_unittest.cc

Issue 215733002: Add support to enable EmbeddedSearch API in Android Chrome search results page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 6 years, 8 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
(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 "chrome/browser/search/search.h"
6
7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace chrome {
12
13 namespace {
14
15 TEST(SearchTest, EmbeddedSearchAPIEnabled) {
16 EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
17 CommandLine::ForCurrentProcess()->AppendSwitch(
18 switches::kEnableEmbeddedSearchAPI);
19 EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
Ted C 2014/04/24 16:24:13 Maybe add checks for IsInstantExtendedAPIEnabled b
kmadhusu 2014/04/24 17:38:48 Done.
20 }
21
22 } // namespace
23
24 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698