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

Side by Side Diff: chrome/browser/prefs/profile_pref_store_manager_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "chrome/browser/prefs/profile_pref_store_manager.h" 5 #include "chrome/browser/prefs/profile_pref_store_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_enumerator.h" 12 #include "base/files/file_enumerator.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/prefs/json_pref_store.h"
19 #include "base/prefs/persistent_pref_store.h"
20 #include "base/prefs/pref_service.h"
21 #include "base/prefs/pref_service_factory.h"
22 #include "base/prefs/pref_store.h"
23 #include "base/prefs/testing_pref_service.h"
24 #include "base/run_loop.h" 18 #include "base/run_loop.h"
25 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
26 #include "base/values.h" 20 #include "base/values.h"
27 #include "components/pref_registry/pref_registry_syncable.h" 21 #include "components/pref_registry/pref_registry_syncable.h"
22 #include "components/prefs/json_pref_store.h"
23 #include "components/prefs/persistent_pref_store.h"
24 #include "components/prefs/pref_service.h"
25 #include "components/prefs/pref_service_factory.h"
26 #include "components/prefs/pref_store.h"
27 #include "components/prefs/testing_pref_service.h"
28 #include "components/user_prefs/tracked/mock_validation_delegate.h" 28 #include "components/user_prefs/tracked/mock_validation_delegate.h"
29 #include "components/user_prefs/tracked/pref_hash_filter.h" 29 #include "components/user_prefs/tracked/pref_hash_filter.h"
30 #include "components/user_prefs/tracked/pref_names.h" 30 #include "components/user_prefs/tracked/pref_names.h"
31 #include "components/user_prefs/tracked/pref_service_hash_store_contents.h" 31 #include "components/user_prefs/tracked/pref_service_hash_store_contents.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 namespace { 34 namespace {
35 35
36 class FirstEqualsPredicate { 36 class FirstEqualsPredicate {
37 public: 37 public:
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 // Trigger the logic that migrates it back to the unprotected preferences 571 // Trigger the logic that migrates it back to the unprotected preferences
572 // file. 572 // file.
573 pref_store_->SetValue(kProtectedAtomic, 573 pref_store_->SetValue(kProtectedAtomic,
574 make_scoped_ptr(new base::StringValue(kGoodbyeWorld)), 574 make_scoped_ptr(new base::StringValue(kGoodbyeWorld)),
575 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 575 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
576 LoadExistingPrefs(); 576 LoadExistingPrefs();
577 ExpectStringValueEquals(kProtectedAtomic, kGoodbyeWorld); 577 ExpectStringValueEquals(kProtectedAtomic, kGoodbyeWorld);
578 VerifyResetRecorded(false); 578 VerifyResetRecorded(false);
579 } 579 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/profile_pref_store_manager.cc ('k') | chrome/browser/prefs/session_startup_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698