OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/engine_impl/model_type_worker.h" | 5 #include "components/sync/engine_impl/model_type_worker.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "components/sync/base/fake_encryptor.h" | 14 #include "components/sync/base/fake_encryptor.h" |
15 #include "components/sync/core/model_type_processor.h" | 15 #include "components/sync/engine/model_type_processor.h" |
16 #include "components/sync/engine_impl/commit_contribution.h" | 16 #include "components/sync/engine_impl/commit_contribution.h" |
17 #include "components/sync/engine_impl/cycle/status_controller.h" | 17 #include "components/sync/engine_impl/cycle/status_controller.h" |
18 #include "components/sync/syncable/syncable_util.h" | 18 #include "components/sync/syncable/syncable_util.h" |
19 #include "components/sync/test/engine/mock_model_type_processor.h" | 19 #include "components/sync/test/engine/mock_model_type_processor.h" |
20 #include "components/sync/test/engine/mock_nudge_handler.h" | 20 #include "components/sync/test/engine/mock_nudge_handler.h" |
21 #include "components/sync/test/engine/single_type_mock_server.h" | 21 #include "components/sync/test/engine/single_type_mock_server.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
25 | 25 |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 // disconnected. | 1018 // disconnected. |
1019 TEST_F(ModelTypeWorkerTest, DisconnectProcessorFromSyncTest) { | 1019 TEST_F(ModelTypeWorkerTest, DisconnectProcessorFromSyncTest) { |
1020 // Initialize the worker with basic state. | 1020 // Initialize the worker with basic state. |
1021 NormalInitialize(); | 1021 NormalInitialize(); |
1022 EXPECT_FALSE(IsProcessorDisconnected()); | 1022 EXPECT_FALSE(IsProcessorDisconnected()); |
1023 ResetWorker(); | 1023 ResetWorker(); |
1024 EXPECT_TRUE(IsProcessorDisconnected()); | 1024 EXPECT_TRUE(IsProcessorDisconnected()); |
1025 } | 1025 } |
1026 | 1026 |
1027 } // namespace syncer | 1027 } // namespace syncer |
OLD | NEW |