OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_TEST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 // Returns a pointer to a particular sync profile. Callee owns the object | 131 // Returns a pointer to a particular sync profile. Callee owns the object |
132 // and manages its lifetime. | 132 // and manages its lifetime. |
133 Profile* GetProfile(int index) WARN_UNUSED_RESULT; | 133 Profile* GetProfile(int index) WARN_UNUSED_RESULT; |
134 | 134 |
135 // Returns a list of all profiles including the verifier if available. Callee | 135 // Returns a list of all profiles including the verifier if available. Callee |
136 // owns the objects and manages its lifetime. | 136 // owns the objects and manages its lifetime. |
137 std::vector<Profile*> GetAllProfiles(); | 137 std::vector<Profile*> GetAllProfiles(); |
138 | 138 |
139 // Returns a pointer to a particular browser. Callee owns the object | 139 // Returns a pointer to a particular browser. Callee owns the object |
140 // and manages its lifetime. | 140 // and manages its lifetime. |
141 Browser* GetBrowser(int index) WARN_UNUSED_RESULT; | 141 Browser* GetBrowser(int index) WARN_UNUSED_RESULT; |
skym
2017/02/24 00:14:09
Why are all these methods annotated with WARN_UNUS
Patrick Noland
2017/02/24 01:00:40
Good question, I'll check into that.
Patrick Noland
2017/02/27 18:53:26
I removed them all and it still compiles.
| |
142 | 142 |
143 // Adds a new browser belonging to the profile at |profile_index|, and appends | |
144 // it to the list of browsers. Creates a copy of the Profile pointer in | |
145 // position |profile_index| and appends it to the list of profiles. This is | |
146 // done so that the profile associated with the new browser can be found at | |
skym
2017/02/24 00:14:09
What does it mean for there to be two Browsers tha
Patrick Noland
2017/02/24 01:00:41
It's having two windows open for the same profile.
| |
147 // the same index as it. | |
148 Browser* AddBrowser(int profile_index); | |
149 | |
143 // Returns a pointer to a particular sync client. Callee owns the object | 150 // Returns a pointer to a particular sync client. Callee owns the object |
144 // and manages its lifetime. | 151 // and manages its lifetime. |
145 ProfileSyncServiceHarness* GetClient(int index) WARN_UNUSED_RESULT; | 152 ProfileSyncServiceHarness* GetClient(int index) WARN_UNUSED_RESULT; |
146 | 153 |
147 // Returns a reference to the collection of sync clients. Callee owns the | 154 // Returns a reference to the collection of sync clients. Callee owns the |
148 // object and manages its lifetime. | 155 // object and manages its lifetime. |
149 std::vector<ProfileSyncServiceHarness*>& clients() WARN_UNUSED_RESULT { | 156 std::vector<ProfileSyncServiceHarness*>& clients() WARN_UNUSED_RESULT { |
150 return clients_.get(); | 157 return clients_.get(); |
151 } | 158 } |
152 | 159 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
458 std::unique_ptr<net::URLFetcherImplFactory> factory_; | 465 std::unique_ptr<net::URLFetcherImplFactory> factory_; |
459 | 466 |
460 // The contents to be written to a profile's Preferences file before the | 467 // The contents to be written to a profile's Preferences file before the |
461 // Profile object is created. If empty, no preexisting file will be written. | 468 // Profile object is created. If empty, no preexisting file will be written. |
462 std::string preexisting_preferences_file_contents_; | 469 std::string preexisting_preferences_file_contents_; |
463 | 470 |
464 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 471 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
465 }; | 472 }; |
466 | 473 |
467 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 474 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
OLD | NEW |