| 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/policy/configuration_policy_pref_store.h" | 6 #include "chrome/browser/policy/configuration_policy_pref_store_test.h" | 
| 7 #include "chrome/browser/policy/configuration_policy_pref_store_unittest.h" |  | 
| 8 #include "chrome/browser/search_engines/default_search_policy_handler.h" | 7 #include "chrome/browser/search_engines/default_search_policy_handler.h" | 
| 9 #include "chrome/common/pref_names.h" | 8 #include "chrome/common/pref_names.h" | 
|  | 9 #include "components/policy/core/browser/configuration_policy_pref_store.h" | 
| 10 #include "policy/policy_constants.h" | 10 #include "policy/policy_constants.h" | 
| 11 | 11 | 
| 12 namespace policy { | 12 namespace policy { | 
| 13 | 13 | 
| 14 class DefaultSearchPolicyHandlerTest | 14 class DefaultSearchPolicyHandlerTest | 
| 15     : public ConfigurationPolicyPrefStoreTest { | 15     : public ConfigurationPolicyPrefStoreTest { | 
| 16  public: | 16  public: | 
| 17   DefaultSearchPolicyHandlerTest() { | 17   DefaultSearchPolicyHandlerTest() { | 
| 18     default_alternate_urls_.AppendString( | 18     default_alternate_urls_.AppendString( | 
| 19         "http://www.google.com/#q={searchTerms}"); | 19         "http://www.google.com/#q={searchTerms}"); | 
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 291   const base::Value* value = NULL; | 291   const base::Value* value = NULL; | 
| 292   EXPECT_TRUE(store_->GetValue(prefs::kDefaultSearchProviderEnabled, &value)); | 292   EXPECT_TRUE(store_->GetValue(prefs::kDefaultSearchProviderEnabled, &value)); | 
| 293   base::FundamentalValue expected_enabled(false); | 293   base::FundamentalValue expected_enabled(false); | 
| 294   EXPECT_TRUE(base::Value::Equals(&expected_enabled, value)); | 294   EXPECT_TRUE(base::Value::Equals(&expected_enabled, value)); | 
| 295   EXPECT_TRUE(store_->GetValue(prefs::kDefaultSearchProviderSearchURL, &value)); | 295   EXPECT_TRUE(store_->GetValue(prefs::kDefaultSearchProviderSearchURL, &value)); | 
| 296   base::StringValue expected_search_url((std::string())); | 296   base::StringValue expected_search_url((std::string())); | 
| 297   EXPECT_TRUE(base::Value::Equals(&expected_search_url, value)); | 297   EXPECT_TRUE(base::Value::Equals(&expected_search_url, value)); | 
| 298 } | 298 } | 
| 299 | 299 | 
| 300 }  // namespace policy | 300 }  // namespace policy | 
| OLD | NEW | 
|---|