| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Syncer unit tests. Unfortunately a lot of these tests | 5 // Syncer unit tests. Unfortunately a lot of these tests |
| 6 // are outdated and need to be reworked and updated. | 6 // are outdated and need to be reworked and updated. |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <list> | 10 #include <list> |
| 11 #include <map> | 11 #include <map> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 34 #include "sync/internal_api/public/base/model_type.h" | 34 #include "sync/internal_api/public/base/model_type.h" |
| 35 #include "sync/internal_api/public/engine/model_safe_worker.h" | 35 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 36 #include "sync/internal_api/public/base/node_ordinal.h" | 36 #include "sync/internal_api/public/base/node_ordinal.h" |
| 37 #include "sync/protocol/bookmark_specifics.pb.h" | 37 #include "sync/protocol/bookmark_specifics.pb.h" |
| 38 #include "sync/protocol/nigori_specifics.pb.h" | 38 #include "sync/protocol/nigori_specifics.pb.h" |
| 39 #include "sync/protocol/preference_specifics.pb.h" | 39 #include "sync/protocol/preference_specifics.pb.h" |
| 40 #include "sync/protocol/sync.pb.h" | 40 #include "sync/protocol/sync.pb.h" |
| 41 #include "sync/sessions/sync_session_context.h" | 41 #include "sync/sessions/sync_session_context.h" |
| 42 #include "sync/syncable/mutable_entry.h" | 42 #include "sync/syncable/mutable_entry.h" |
| 43 #include "sync/syncable/nigori_util.h" | 43 #include "sync/syncable/nigori_util.h" |
| 44 #include "sync/syncable/read_transaction.h" | 44 #include "sync/syncable/syncable_read_transaction.h" |
| 45 #include "sync/syncable/syncable_util.h" | 45 #include "sync/syncable/syncable_util.h" |
| 46 #include "sync/syncable/write_transaction.h" | 46 #include "sync/syncable/syncable_write_transaction.h" |
| 47 #include "sync/test/engine/fake_model_worker.h" | 47 #include "sync/test/engine/fake_model_worker.h" |
| 48 #include "sync/test/engine/mock_connection_manager.h" | 48 #include "sync/test/engine/mock_connection_manager.h" |
| 49 #include "sync/test/engine/test_directory_setter_upper.h" | 49 #include "sync/test/engine/test_directory_setter_upper.h" |
| 50 #include "sync/test/engine/test_id_factory.h" | 50 #include "sync/test/engine/test_id_factory.h" |
| 51 #include "sync/test/engine/test_syncable_utils.h" | 51 #include "sync/test/engine/test_syncable_utils.h" |
| 52 #include "sync/test/fake_encryptor.h" | 52 #include "sync/test/fake_encryptor.h" |
| 53 #include "sync/test/fake_extensions_activity_monitor.h" | 53 #include "sync/test/fake_extensions_activity_monitor.h" |
| 54 #include "sync/test/fake_sync_encryption_handler.h" | 54 #include "sync/test/fake_sync_encryption_handler.h" |
| 55 #include "sync/util/cryptographer.h" | 55 #include "sync/util/cryptographer.h" |
| 56 #include "sync/util/time.h" | 56 #include "sync/util/time.h" |
| (...skipping 4642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4699 | 4699 |
| 4700 TEST_F(SyncerPositionTiebreakingTest, MidLowHigh) { | 4700 TEST_F(SyncerPositionTiebreakingTest, MidLowHigh) { |
| 4701 Add(mid_id_); | 4701 Add(mid_id_); |
| 4702 Add(low_id_); | 4702 Add(low_id_); |
| 4703 Add(high_id_); | 4703 Add(high_id_); |
| 4704 SyncShareNudge(); | 4704 SyncShareNudge(); |
| 4705 ExpectLocalOrderIsByServerId(); | 4705 ExpectLocalOrderIsByServerId(); |
| 4706 } | 4706 } |
| 4707 | 4707 |
| 4708 } // namespace syncer | 4708 } // namespace syncer |
| OLD | NEW |