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

Side by Side Diff: sync/test/accounts_client/test_accounts_client.h

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/engine/model_safe_worker.h ('k') | sync/test/accounts_client/test_accounts_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698