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 SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ | 5 #ifndef SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ |
6 #define SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ | 6 #define SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Attempts to release an account via the Test Accounts service. The value | 47 // Attempts to release an account via the Test Accounts service. The value |
48 // of |session| should be one returned from ClaimAccount(). This function | 48 // of |session| should be one returned from ClaimAccount(). This function |
49 // is best-effort and fails silently. | 49 // is best-effort and fails silently. |
50 void ReleaseAccount(const AccountSession& session); | 50 void ReleaseAccount(const AccountSession& session); |
51 | 51 |
52 // Sends an HTTP POST request to the Test Accounts service. | 52 // Sends an HTTP POST request to the Test Accounts service. |
53 virtual bool SendRequest(const GURL& url, string* response); | 53 virtual bool SendRequest(const GURL& url, string* response); |
54 | 54 |
55 private: | 55 private: |
56 GURL CreateGURLWithPath(const string& path); | 56 GURL CreateGURLWithPath(const string& path); |
57 MessageLoopForIO io_loop_; | 57 base::MessageLoopForIO io_loop_; |
58 const string server_; | 58 const string server_; |
59 const string account_space_; | 59 const string account_space_; |
60 vector<string> usernames_; | 60 vector<string> usernames_; |
61 }; | 61 }; |
62 | 62 |
63 #endif // SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ | 63 #endif // SYNC_TEST_ACCOUNTS_CLIENT_TEST_ACCOUNTS_CLIENT_H_ |
OLD | NEW |