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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 8883030: Making profile avatars and names sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a Profile Manager unittest Created 9 years 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 (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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/ui/webui/options/manage_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698