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 #include "chrome/browser/sync/test/integration/sync_test.h" | 5 #include "chrome/browser/sync/test/integration/sync_test.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
43 #include "net/base/network_change_notifier.h" | 43 #include "net/base/network_change_notifier.h" |
44 #include "net/proxy/proxy_config.h" | 44 #include "net/proxy/proxy_config.h" |
45 #include "net/proxy/proxy_config_service_fixed.h" | 45 #include "net/proxy/proxy_config_service_fixed.h" |
46 #include "net/proxy/proxy_service.h" | 46 #include "net/proxy/proxy_service.h" |
47 #include "net/test/test_server.h" | 47 #include "net/test/test_server.h" |
48 #include "net/url_request/url_request_context.h" | 48 #include "net/url_request/url_request_context.h" |
49 #include "net/url_request/url_request_context_getter.h" | 49 #include "net/url_request/url_request_context_getter.h" |
50 #include "net/url_request/url_request_status.h" | 50 #include "net/url_request/url_request_status.h" |
51 | 51 |
| 52 using content::BrowserThread; |
| 53 |
52 namespace switches { | 54 namespace switches { |
53 const char kPasswordFileForTest[] = "password-file-for-test"; | 55 const char kPasswordFileForTest[] = "password-file-for-test"; |
54 const char kSyncUserForTest[] = "sync-user-for-test"; | 56 const char kSyncUserForTest[] = "sync-user-for-test"; |
55 const char kSyncPasswordForTest[] = "sync-password-for-test"; | 57 const char kSyncPasswordForTest[] = "sync-password-for-test"; |
56 const char kSyncServerCommandLine[] = "sync-server-command-line"; | 58 const char kSyncServerCommandLine[] = "sync-server-command-line"; |
57 } | 59 } |
58 | 60 |
59 namespace { | 61 namespace { |
60 // The URLs for different calls in the Google Accounts programmatic login API. | 62 // The URLs for different calls in the Google Accounts programmatic login API. |
61 const char kClientLoginUrl[] = "https://www.google.com/accounts/ClientLogin"; | 63 const char kClientLoginUrl[] = "https://www.google.com/accounts/ClientLogin"; |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 const net::ProxyConfig& proxy_config) { | 707 const net::ProxyConfig& proxy_config) { |
706 base::WaitableEvent done(false, false); | 708 base::WaitableEvent done(false, false); |
707 BrowserThread::PostTask( | 709 BrowserThread::PostTask( |
708 BrowserThread::IO, | 710 BrowserThread::IO, |
709 FROM_HERE, | 711 FROM_HERE, |
710 new SetProxyConfigTask(&done, | 712 new SetProxyConfigTask(&done, |
711 context_getter, | 713 context_getter, |
712 proxy_config)); | 714 proxy_config)); |
713 done.Wait(); | 715 done.Wait(); |
714 } | 716 } |
OLD | NEW |