OLD | NEW |
---|---|
(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 | |
OLD | NEW |