OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "chrome/browser/search_engines/default_search_manager.h" | |
7 #include "chrome/browser/search_engines/default_search_policy_handler.h" | |
8 #include "components/policy/core/browser/configuration_policy_pref_store.h" | 6 #include "components/policy/core/browser/configuration_policy_pref_store.h" |
9 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" | 7 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" |
| 8 #include "components/search_engines/default_search_manager.h" |
| 9 #include "components/search_engines/default_search_policy_handler.h" |
10 #include "components/search_engines/search_engines_pref_names.h" | 10 #include "components/search_engines/search_engines_pref_names.h" |
11 #include "policy/policy_constants.h" | 11 #include "policy/policy_constants.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 // TODO(caitkp): Should we find a way to route this through DefaultSearchManager | 14 // TODO(caitkp): Should we find a way to route this through DefaultSearchManager |
15 // to avoid hardcoding this here? | 15 // to avoid hardcoding this here? |
16 const char kDefaultSearchProviderData[] = | 16 const char kDefaultSearchProviderData[] = |
17 "default_search_provider_data.template_url_data"; | 17 "default_search_provider_data.template_url_data"; |
18 } // namespace | 18 } // namespace |
19 | 19 |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 temp->GetAsDictionary(&dictionary); | 479 temp->GetAsDictionary(&dictionary); |
480 | 480 |
481 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value)); | 481 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value)); |
482 EXPECT_EQ(kFileSearchURL, value); | 482 EXPECT_EQ(kFileSearchURL, value); |
483 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value)); | 483 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value)); |
484 EXPECT_EQ("_", value); | 484 EXPECT_EQ("_", value); |
485 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value)); | 485 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value)); |
486 EXPECT_EQ("_", value); | 486 EXPECT_EQ("_", value); |
487 } | 487 } |
488 } // namespace policy | 488 } // namespace policy |
OLD | NEW |