OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // Used to verify that the list preference with name |pref_name| has the | 102 // Used to verify that the list preference with name |pref_name| has the |
103 // same value across all profiles. Also checks |verifier| if DisableVerifier() | 103 // same value across all profiles. Also checks |verifier| if DisableVerifier() |
104 // hasn't been called. | 104 // hasn't been called. |
105 bool ListPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; | 105 bool ListPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
106 | 106 |
107 // This is the version of ListPrefMatches that waits for the preference list | 107 // This is the version of ListPrefMatches that waits for the preference list |
108 // to match in all profiles. Returns false if this operation times out. | 108 // to match in all profiles. Returns false if this operation times out. |
109 bool AwaitListPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; | 109 bool AwaitListPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
110 | 110 |
| 111 // Blocks the test until the specified pref matches on all relevant clients or |
| 112 // a timeout occurs. Returns false if it returns because of a timeout. |
| 113 bool AwaitBooleanPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
| 114 |
| 115 // Blocks the test until the specified pref matches on all relevant clients or |
| 116 // a timeout occurs. Returns false if it returns because of a timeout. |
| 117 bool AwaitIntegerPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
| 118 |
| 119 // Blocks the test until the specified pref matches on all relevant clients or |
| 120 // a timeout occurs. Returns false if it returns because of a timeout. |
| 121 bool AwaitStringPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
| 122 |
111 } // namespace preferences_helper | 123 } // namespace preferences_helper |
112 | 124 |
113 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ | 125 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PREFERENCES_HELPER_H_ |
OLD | NEW |