| OLD | NEW |
| 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 #include "components/sync/driver/glue/sync_backend_host_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 InitializeBackend(true); | 287 InitializeBackend(true); |
| 288 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); | 288 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); |
| 289 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); | 289 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); |
| 290 EXPECT_TRUE( | 290 EXPECT_TRUE( |
| 291 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) | 291 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) |
| 292 .Empty()); | 292 .Empty()); |
| 293 } | 293 } |
| 294 | 294 |
| 295 // Test first time sync scenario. All types should be properly configured. | 295 // Test first time sync scenario. All types should be properly configured. |
| 296 | 296 |
| 297 #if defined(OS_IOS) | 297 TEST_F(SyncBackendHostTest, FirstTimeSync) { |
| 298 // http://crbug.com/658619 | |
| 299 #define MAYBE_FirstTimeSync DISABLED_FirstTimeSync | |
| 300 #else | |
| 301 #define MAYBE_FirstTimeSync FirstTimeSync | |
| 302 #endif | |
| 303 TEST_F(SyncBackendHostTest, MAYBE_FirstTimeSync) { | |
| 304 InitializeBackend(true); | 298 InitializeBackend(true); |
| 305 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); | 299 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); |
| 306 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); | 300 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); |
| 307 EXPECT_TRUE( | 301 EXPECT_TRUE( |
| 308 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) | 302 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) |
| 309 .Empty()); | 303 .Empty()); |
| 310 | 304 |
| 311 ModelTypeSet ready_types = ConfigureDataTypes( | 305 ModelTypeSet ready_types = ConfigureDataTypes( |
| 312 enabled_types_, Difference(ModelTypeSet::All(), enabled_types_), | 306 enabled_types_, Difference(ModelTypeSet::All(), enabled_types_), |
| 313 ModelTypeSet()); | 307 ModelTypeSet()); |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 backend_->StopSyncingForShutdown(); | 824 backend_->StopSyncingForShutdown(); |
| 831 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 825 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
| 832 backend_->DeactivateNonBlockingDataType(AUTOFILL); | 826 backend_->DeactivateNonBlockingDataType(AUTOFILL); |
| 833 backend_->Shutdown(STOP_SYNC); | 827 backend_->Shutdown(STOP_SYNC); |
| 834 backend_.reset(); | 828 backend_.reset(); |
| 835 } | 829 } |
| 836 | 830 |
| 837 } // namespace | 831 } // namespace |
| 838 | 832 |
| 839 } // namespace syncer | 833 } // namespace syncer |
| OLD | NEW |