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

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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some tests. Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <vector> 10 #include <vector>
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 new P2PSyncRefresher(GetProfile(i), clients_[i]->service()); 616 new P2PSyncRefresher(GetProfile(i), clients_[i]->service());
617 } 617 }
618 618
619 // OneClickSigninSyncStarter observer is created with a real user sign in. 619 // OneClickSigninSyncStarter observer is created with a real user sign in.
620 // It is deleted on certain conditions which are not satisfied by our tests, 620 // It is deleted on certain conditions which are not satisfied by our tests,
621 // and this causes the SigninTracker observer to stay hanging at shutdown. 621 // and this causes the SigninTracker observer to stay hanging at shutdown.
622 // Calling LoginUIService::SyncConfirmationUIClosed forces the observer to 622 // Calling LoginUIService::SyncConfirmationUIClosed forces the observer to
623 // be removed. http://crbug.com/484388 623 // be removed. http://crbug.com/484388
624 for (int i = 0; i < num_clients_; ++i) { 624 for (int i = 0; i < num_clients_; ++i) {
625 LoginUIServiceFactory::GetForProfile(GetProfile(i))-> 625 LoginUIServiceFactory::GetForProfile(GetProfile(i))->
626 SyncConfirmationUIClosed(false /* configure_sync_first */); 626 SyncConfirmationUIClosed(LoginUIService::SYNC_WITH_DEFAULT_SETTINGS);
627 } 627 }
628 } 628 }
629 629
630 return true; 630 return true;
631 } 631 }
632 632
633 void SyncTest::TearDownOnMainThread() { 633 void SyncTest::TearDownOnMainThread() {
634 for (size_t i = 0; i < clients_.size(); ++i) { 634 for (size_t i = 0; i < clients_.size(); ++i) {
635 clients_[i]->service()->RequestStop(ProfileSyncService::CLEAR_DATA); 635 clients_[i]->service()->RequestStop(ProfileSyncService::CLEAR_DATA);
636 } 636 }
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 1104
1105 void SyncTest::TriggerSyncForModelTypes(int index, 1105 void SyncTest::TriggerSyncForModelTypes(int index,
1106 syncer::ModelTypeSet model_types) { 1106 syncer::ModelTypeSet model_types) {
1107 GetSyncService(index)->TriggerRefresh(model_types); 1107 GetSyncService(index)->TriggerRefresh(model_types);
1108 } 1108 }
1109 1109
1110 void SyncTest::SetPreexistingPreferencesFileContents( 1110 void SyncTest::SetPreexistingPreferencesFileContents(
1111 const std::string& contents) { 1111 const std::string& contents) {
1112 preexisting_preferences_file_contents_ = contents; 1112 preexisting_preferences_file_contents_ = contents;
1113 } 1113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698