OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ |
6 #define CHROME_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include "chrome/test/live_sync/live_sync_test.h" | 10 #include "chrome/test/live_sync/live_sync_test.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // |verifier| if DisableVerifier() hasn't been called. | 57 // |verifier| if DisableVerifier() hasn't been called. |
58 void ChangeFilePathPref(int index, | 58 void ChangeFilePathPref(int index, |
59 const char* pref_name, | 59 const char* pref_name, |
60 const FilePath& new_value); | 60 const FilePath& new_value); |
61 | 61 |
62 // Changes the value of the list preference with name |pref_name| in the | 62 // Changes the value of the list preference with name |pref_name| in the |
63 // profile with index |index| to |new_value|. Also changes its value in | 63 // profile with index |index| to |new_value|. Also changes its value in |
64 // |verifier| if DisableVerifier() hasn't been called. | 64 // |verifier| if DisableVerifier() hasn't been called. |
65 void ChangeListPref(int index, | 65 void ChangeListPref(int index, |
66 const char* pref_name, | 66 const char* pref_name, |
67 const ListValue& new_value); | 67 const base::ListValue& new_value); |
68 | 68 |
69 // Used to verify that the boolean preference with name |pref_name| has the | 69 // Used to verify that the boolean preference with name |pref_name| has the |
70 // same value across all profiles. Also checks |verifier| if DisableVerifier() | 70 // same value across all profiles. Also checks |verifier| if DisableVerifier() |
71 // hasn't been called. | 71 // hasn't been called. |
72 bool BooleanPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; | 72 bool BooleanPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
73 | 73 |
74 // Used to verify that the integer preference with name |pref_name| has the | 74 // Used to verify that the integer preference with name |pref_name| has the |
75 // same value across all profiles. Also checks |verifier| if DisableVerifier() | 75 // same value across all profiles. Also checks |verifier| if DisableVerifier() |
76 // hasn't been called. | 76 // hasn't been called. |
77 bool IntegerPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; | 77 bool IntegerPrefMatches(const char* pref_name) WARN_UNUSED_RESULT; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 class ManyClientLivePreferencesSyncTest : public LivePreferencesSyncTest { | 146 class ManyClientLivePreferencesSyncTest : public LivePreferencesSyncTest { |
147 public: | 147 public: |
148 ManyClientLivePreferencesSyncTest() : LivePreferencesSyncTest(MANY_CLIENT) {} | 148 ManyClientLivePreferencesSyncTest() : LivePreferencesSyncTest(MANY_CLIENT) {} |
149 virtual ~ManyClientLivePreferencesSyncTest() {} | 149 virtual ~ManyClientLivePreferencesSyncTest() {} |
150 | 150 |
151 private: | 151 private: |
152 DISALLOW_COPY_AND_ASSIGN(ManyClientLivePreferencesSyncTest); | 152 DISALLOW_COPY_AND_ASSIGN(ManyClientLivePreferencesSyncTest); |
153 }; | 153 }; |
154 | 154 |
155 #endif // CHROME_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ | 155 #endif // CHROME_TEST_LIVE_SYNC_LIVE_PREFERENCES_SYNC_TEST_H_ |
OLD | NEW |