| Index: components/search/search_android_unittest.cc
|
| diff --git a/components/search/search_android_unittest.cc b/components/search/search_android_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9c67edff3bf43e3f3fe3530678cd04ad948a8f13
|
| --- /dev/null
|
| +++ b/components/search/search_android_unittest.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/search/search.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/metrics/field_trial.h"
|
| +#include "base/metrics/statistics_recorder.h"
|
| +#include "components/search/search_switches.h"
|
| +#include "components/variations/entropy_provider.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace chrome {
|
| +
|
| +namespace {
|
| +
|
| +TEST(SearchTest, EmbeddedSearchAPIEnabled) {
|
| + EXPECT_EQ(1ul, EmbeddedSearchPageVersion());
|
| + EXPECT_FALSE(IsInstantExtendedAPIEnabled());
|
| + CommandLine::ForCurrentProcess()->AppendSwitch(
|
| + switches::kEnableEmbeddedSearchAPI);
|
| + EXPECT_EQ(2ul, EmbeddedSearchPageVersion());
|
| + EXPECT_TRUE(IsInstantExtendedAPIEnabled());
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| +} // namespace chrome
|
|
|