Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / search / search_android_unittest.cc
blobdcf591450e9a0a8b7c56f2a320a8013b5e60751d
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.
5 #include "chrome/browser/search/search.h"
7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace chrome {
13 namespace {
15 TEST(SearchTest, EmbeddedSearchAPIEnabled) {
16 EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
17 EXPECT_FALSE(IsInstantExtendedAPIEnabled());
18 CommandLine::ForCurrentProcess()->AppendSwitch(
19 switches::kEnableEmbeddedSearchAPI);
20 EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
21 EXPECT_TRUE(IsInstantExtendedAPIEnabled());
24 } // namespace
26 } // namespace chrome