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 "chrome/browser/prefs/mock_validation_delegate.h" | 5 #include "chrome/browser/prefs/tracked/mock_validation_delegate.h" |
6 | 6 |
7 MockValidationDelegate::MockValidationDelegate() { | 7 MockValidationDelegate::MockValidationDelegate() { |
8 } | 8 } |
9 | 9 |
10 MockValidationDelegate::~MockValidationDelegate() { | 10 MockValidationDelegate::~MockValidationDelegate() { |
11 } | 11 } |
12 | 12 |
13 size_t MockValidationDelegate::CountValidationsOfState( | 13 size_t MockValidationDelegate::CountValidationsOfState( |
14 PrefHashStoreTransaction::ValueState value_state) const { | 14 PrefHashStoreTransaction::ValueState value_state) const { |
15 size_t count = 0; | 15 size_t count = 0; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 void MockValidationDelegate::RecordValidation( | 55 void MockValidationDelegate::RecordValidation( |
56 const std::string& pref_path, | 56 const std::string& pref_path, |
57 PrefHashStoreTransaction::ValueState value_state, | 57 PrefHashStoreTransaction::ValueState value_state, |
58 TrackedPreferenceHelper::ResetAction reset_action, | 58 TrackedPreferenceHelper::ResetAction reset_action, |
59 PrefHashFilter::PrefTrackingStrategy strategy) { | 59 PrefHashFilter::PrefTrackingStrategy strategy) { |
60 validations_.push_back( | 60 validations_.push_back( |
61 ValidationEvent(pref_path, value_state, reset_action, strategy)); | 61 ValidationEvent(pref_path, value_state, reset_action, strategy)); |
62 } | 62 } |
OLD | NEW |