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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 TEST_F(SyncBackendHostTest, InitShutdown) { | 286 TEST_F(SyncBackendHostTest, InitShutdown) { |
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 TEST_F(SyncBackendHostTest, FirstTimeSync) { | 296 |
| 297 #if defined(OS_IOS) |
| 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) { |
297 InitializeBackend(true); | 304 InitializeBackend(true); |
298 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); | 305 EXPECT_EQ(ControlTypes(), fake_manager_->GetAndResetDownloadedTypes()); |
299 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); | 306 EXPECT_EQ(ControlTypes(), fake_manager_->InitialSyncEndedTypes()); |
300 EXPECT_TRUE( | 307 EXPECT_TRUE( |
301 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) | 308 fake_manager_->GetTypesWithEmptyProgressMarkerToken(ControlTypes()) |
302 .Empty()); | 309 .Empty()); |
303 | 310 |
304 ModelTypeSet ready_types = ConfigureDataTypes( | 311 ModelTypeSet ready_types = ConfigureDataTypes( |
305 enabled_types_, Difference(ModelTypeSet::All(), enabled_types_), | 312 enabled_types_, Difference(ModelTypeSet::All(), enabled_types_), |
306 ModelTypeSet()); | 313 ModelTypeSet()); |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 backend_->StopSyncingForShutdown(); | 830 backend_->StopSyncingForShutdown(); |
824 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 831 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
825 backend_->DeactivateNonBlockingDataType(AUTOFILL); | 832 backend_->DeactivateNonBlockingDataType(AUTOFILL); |
826 backend_->Shutdown(STOP_SYNC); | 833 backend_->Shutdown(STOP_SYNC); |
827 backend_.reset(); | 834 backend_.reset(); |
828 } | 835 } |
829 | 836 |
830 } // namespace | 837 } // namespace |
831 | 838 |
832 } // namespace syncer | 839 } // namespace syncer |
OLD | NEW |