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

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

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 #ifndef CHROME_BROWSER_PREFS_MOCK_VALIDATION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_MOCK_VALIDATION_DELEGATE_H_
6 #define CHROME_BROWSER_PREFS_MOCK_VALIDATION_DELEGATE_H_ 6 #define CHROME_BROWSER_PREFS_TRACKED_MOCK_VALIDATION_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/prefs/pref_hash_filter.h" 13 #include "chrome/browser/prefs/tracked/pref_hash_filter.h"
14 #include "chrome/browser/prefs/pref_hash_store_transaction.h" 14 #include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h"
15 #include "chrome/browser/prefs/tracked/tracked_preference_helper.h" 15 #include "chrome/browser/prefs/tracked/tracked_preference_helper.h"
16 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h" 16 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h"
17 17
18 // A mock tracked preference validation delegate for use by tests. 18 // A mock tracked preference validation delegate for use by tests.
19 class MockValidationDelegate : public TrackedPreferenceValidationDelegate { 19 class MockValidationDelegate : public TrackedPreferenceValidationDelegate {
20 public: 20 public:
21 struct ValidationEvent { 21 struct ValidationEvent {
22 ValidationEvent(const std::string& path, 22 ValidationEvent(const std::string& path,
23 PrefHashStoreTransaction::ValueState state, 23 PrefHashStoreTransaction::ValueState state,
24 TrackedPreferenceHelper::ResetAction action, 24 TrackedPreferenceHelper::ResetAction action,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void RecordValidation(const std::string& pref_path, 65 void RecordValidation(const std::string& pref_path,
66 PrefHashStoreTransaction::ValueState value_state, 66 PrefHashStoreTransaction::ValueState value_state,
67 TrackedPreferenceHelper::ResetAction reset_action, 67 TrackedPreferenceHelper::ResetAction reset_action,
68 PrefHashFilter::PrefTrackingStrategy strategy); 68 PrefHashFilter::PrefTrackingStrategy strategy);
69 69
70 std::vector<ValidationEvent> validations_; 70 std::vector<ValidationEvent> validations_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(MockValidationDelegate); 72 DISALLOW_COPY_AND_ASSIGN(MockValidationDelegate);
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_PREFS_MOCK_VALIDATION_DELEGATE_H_ 75 #endif // CHROME_BROWSER_PREFS_TRACKED_MOCK_VALIDATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/tracked/interceptable_pref_filter.cc ('k') | chrome/browser/prefs/tracked/mock_validation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698