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 "components/user_prefs/tracked/mock_validation_delegate.h" | 5 #include "components/user_prefs/tracked/mock_validation_delegate.h" |
6 | 6 |
7 MockValidationDelegateRecord::MockValidationDelegateRecord() = default; | 7 MockValidationDelegateRecord::MockValidationDelegateRecord() = default; |
8 | 8 |
9 MockValidationDelegateRecord::~MockValidationDelegateRecord() = default; | 9 MockValidationDelegateRecord::~MockValidationDelegateRecord() = default; |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 MockValidationDelegate::~MockValidationDelegate() = default; | 56 MockValidationDelegate::~MockValidationDelegate() = default; |
57 | 57 |
58 void MockValidationDelegate::OnAtomicPreferenceValidation( | 58 void MockValidationDelegate::OnAtomicPreferenceValidation( |
59 const std::string& pref_path, | 59 const std::string& pref_path, |
60 std::unique_ptr<base::Value> value, | 60 std::unique_ptr<base::Value> value, |
61 PrefHashStoreTransaction::ValueState value_state, | 61 PrefHashStoreTransaction::ValueState value_state, |
62 PrefHashStoreTransaction::ValueState external_validation_value_state, | 62 PrefHashStoreTransaction::ValueState external_validation_value_state, |
63 bool is_personal) { | 63 bool is_personal) { |
64 record_->RecordValidation(pref_path, value_state, | 64 record_->RecordValidation(pref_path, value_state, |
65 external_validation_value_state, is_personal, | 65 external_validation_value_state, is_personal, |
66 PrefHashFilter::TRACKING_STRATEGY_ATOMIC); | 66 PrefHashFilter::PrefTrackingStrategy::ATOMIC); |
67 } | 67 } |
68 | 68 |
69 void MockValidationDelegate::OnSplitPreferenceValidation( | 69 void MockValidationDelegate::OnSplitPreferenceValidation( |
70 const std::string& pref_path, | 70 const std::string& pref_path, |
71 const std::vector<std::string>& invalid_keys, | 71 const std::vector<std::string>& invalid_keys, |
72 const std::vector<std::string>& external_validation_invalid_keys, | 72 const std::vector<std::string>& external_validation_invalid_keys, |
73 PrefHashStoreTransaction::ValueState value_state, | 73 PrefHashStoreTransaction::ValueState value_state, |
74 PrefHashStoreTransaction::ValueState external_validation_value_state, | 74 PrefHashStoreTransaction::ValueState external_validation_value_state, |
75 bool is_personal) { | 75 bool is_personal) { |
76 record_->RecordValidation(pref_path, value_state, | 76 record_->RecordValidation(pref_path, value_state, |
77 external_validation_value_state, is_personal, | 77 external_validation_value_state, is_personal, |
78 PrefHashFilter::TRACKING_STRATEGY_SPLIT); | 78 PrefHashFilter::PrefTrackingStrategy::SPLIT); |
79 } | 79 } |
OLD | NEW |