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/bind.h" | 10 #include "base/bind.h" |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 ASSERT_EQ("Sync Tabs", | 700 ASSERT_EQ("Sync Tabs", |
701 UTF16ToASCII(browser()->GetSelectedTabContents()->GetTitle())); | 701 UTF16ToASCII(browser()->GetSelectedTabContents()->GetTitle())); |
702 } | 702 } |
703 | 703 |
704 int SyncTest::NumberOfDefaultSyncItems() const { | 704 int SyncTest::NumberOfDefaultSyncItems() const { |
705 // Just return the current number of basic sync items that are synced, | 705 // Just return the current number of basic sync items that are synced, |
706 // including preferences, themes, and search engines. | 706 // including preferences, themes, and search engines. |
707 // TODO(stevet): It would be nice if there was some mechanism for retrieving | 707 // TODO(stevet): It would be nice if there was some mechanism for retrieving |
708 // this sum from each data type without having to manually count and update | 708 // this sum from each data type without having to manually count and update |
709 // this value. | 709 // this value. |
710 return 7; | 710 return 9; |
711 } | 711 } |
712 | 712 |
713 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, | 713 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, |
714 const net::ProxyConfig& proxy_config) { | 714 const net::ProxyConfig& proxy_config) { |
715 base::WaitableEvent done(false, false); | 715 base::WaitableEvent done(false, false); |
716 BrowserThread::PostTask( | 716 BrowserThread::PostTask( |
717 BrowserThread::IO, FROM_HERE, | 717 BrowserThread::IO, FROM_HERE, |
718 base::Bind(&SetProxyConfigCallback, &done, | 718 base::Bind(&SetProxyConfigCallback, &done, |
719 make_scoped_refptr(context_getter), proxy_config)); | 719 make_scoped_refptr(context_getter), proxy_config)); |
720 done.Wait(); | 720 done.Wait(); |
721 } | 721 } |
OLD | NEW |