Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: components/search_engines/default_search_pref_migration_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/search_engines/default_search_pref_migration.h" 5 #include "components/search_engines/default_search_pref_migration.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
13 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
14 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
16 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Store a value in the legacy location. 225 // Store a value in the legacy location.
224 SaveDefaultSearchProviderToLegacyPrefs(&prepopulated_turl); 226 SaveDefaultSearchProviderToLegacyPrefs(&prepopulated_turl);
225 227
226 // Run the migration. 228 // Run the migration.
227 ConfigureDefaultSearchPrefMigrationToDictionaryValue(pref_service()); 229 ConfigureDefaultSearchPrefMigrationToDictionaryValue(pref_service());
228 230
229 // Test that the legacy value is not migrated, as it is not user-selected. 231 // Test that the legacy value is not migrated, as it is not user-selected.
230 default_search_manager()->GetDefaultSearchEngine(&source); 232 default_search_manager()->GetDefaultSearchEngine(&source);
231 EXPECT_EQ(DefaultSearchManager::FROM_FALLBACK, source); 233 EXPECT_EQ(DefaultSearchManager::FROM_FALLBACK, source);
232 } 234 }
OLDNEW
« no previous file with comments | « components/search_engines/default_search_pref_migration.cc ('k') | components/search_engines/default_search_pref_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698