| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 <stddef.h> |
| 6 |
| 5 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/macros.h" |
| 6 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 8 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 11 #include "components/pref_registry/pref_registry_syncable.h" | 14 #include "components/pref_registry/pref_registry_syncable.h" |
| 12 #include "components/pref_registry/testing_pref_service_syncable.h" | 15 #include "components/pref_registry/testing_pref_service_syncable.h" |
| 13 #include "components/search_engines/default_search_manager.h" | 16 #include "components/search_engines/default_search_manager.h" |
| 14 #include "components/search_engines/search_engines_pref_names.h" | 17 #include "components/search_engines/search_engines_pref_names.h" |
| 15 #include "components/search_engines/template_url_data.h" | 18 #include "components/search_engines/template_url_data.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 321 |
| 319 ExpectSimilar(extension_data_3.get(), | 322 ExpectSimilar(extension_data_3.get(), |
| 320 manager.GetDefaultSearchEngine(&source)); | 323 manager.GetDefaultSearchEngine(&source)); |
| 321 EXPECT_EQ(DefaultSearchManager::FROM_EXTENSION, source); | 324 EXPECT_EQ(DefaultSearchManager::FROM_EXTENSION, source); |
| 322 | 325 |
| 323 manager.ClearExtensionControlledDefaultSearchEngine(); | 326 manager.ClearExtensionControlledDefaultSearchEngine(); |
| 324 | 327 |
| 325 ExpectSimilar(data.get(), manager.GetDefaultSearchEngine(&source)); | 328 ExpectSimilar(data.get(), manager.GetDefaultSearchEngine(&source)); |
| 326 EXPECT_EQ(DefaultSearchManager::FROM_USER, source); | 329 EXPECT_EQ(DefaultSearchManager::FROM_USER, source); |
| 327 } | 330 } |
| OLD | NEW |