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

Side by Side Diff: chrome/browser/prefs/tracked/mock_validation_delegate.cc

Issue 620933002: Move all files related to tracked preferences from c/b/prefs to c/b/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/tracked/mock_validation_delegate.h ('k') | chrome/browser/prefs/tracked/pref_hash_calculator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698