| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 using ::testing::StrictMock; | 52 using ::testing::StrictMock; |
| 53 using ::testing::_; | 53 using ::testing::_; |
| 54 | 54 |
| 55 namespace syncer { | 55 namespace syncer { |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 static const base::FilePath::CharType kTestSyncDir[] = | 59 static const base::FilePath::CharType kTestSyncDir[] = |
| 60 FILE_PATH_LITERAL("sync-test"); | 60 FILE_PATH_LITERAL("sync-test"); |
| 61 | 61 |
| 62 ACTION_P(Signal, event) { | |
| 63 event->Signal(); | |
| 64 } | |
| 65 | |
| 66 void EmptyNetworkTimeUpdate(const base::Time&, | 62 void EmptyNetworkTimeUpdate(const base::Time&, |
| 67 const base::TimeDelta&, | 63 const base::TimeDelta&, |
| 68 const base::TimeDelta&) {} | 64 const base::TimeDelta&) {} |
| 69 | 65 |
| 70 class TestSyncEngineHost : public SyncEngineHostStub { | 66 class TestSyncEngineHost : public SyncEngineHostStub { |
| 71 public: | 67 public: |
| 72 explicit TestSyncEngineHost( | 68 explicit TestSyncEngineHost( |
| 73 base::Callback<void(ModelTypeSet)> set_engine_types) | 69 base::Callback<void(ModelTypeSet)> set_engine_types) |
| 74 : set_engine_types_(set_engine_types) {} | 70 : set_engine_types_(set_engine_types) {} |
| 75 | 71 |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 backend_->StopSyncingForShutdown(); | 816 backend_->StopSyncingForShutdown(); |
| 821 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 817 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
| 822 backend_->DeactivateNonBlockingDataType(AUTOFILL); | 818 backend_->DeactivateNonBlockingDataType(AUTOFILL); |
| 823 backend_->Shutdown(STOP_SYNC); | 819 backend_->Shutdown(STOP_SYNC); |
| 824 backend_.reset(); | 820 backend_.reset(); |
| 825 } | 821 } |
| 826 | 822 |
| 827 } // namespace | 823 } // namespace |
| 828 | 824 |
| 829 } // namespace syncer | 825 } // namespace syncer |
| OLD | NEW |