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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "sync/engine/apply_updates_and_resolve_conflicts_command.h" | 10 #include "sync/engine/apply_updates_and_resolve_conflicts_command.h" |
11 #include "sync/engine/syncer.h" | 11 #include "sync/engine/syncer.h" |
12 #include "sync/internal_api/public/test/test_entry_factory.h" | 12 #include "sync/internal_api/public/test/test_entry_factory.h" |
13 #include "sync/protocol/bookmark_specifics.pb.h" | 13 #include "sync/protocol/bookmark_specifics.pb.h" |
14 #include "sync/protocol/password_specifics.pb.h" | 14 #include "sync/protocol/password_specifics.pb.h" |
15 #include "sync/syncable/mutable_entry.h" | 15 #include "sync/syncable/mutable_entry.h" |
16 #include "sync/syncable/read_transaction.h" | |
17 #include "sync/syncable/syncable_id.h" | 16 #include "sync/syncable/syncable_id.h" |
| 17 #include "sync/syncable/syncable_read_transaction.h" |
18 #include "sync/syncable/syncable_util.h" | 18 #include "sync/syncable/syncable_util.h" |
19 #include "sync/syncable/write_transaction.h" | 19 #include "sync/syncable/syncable_write_transaction.h" |
20 #include "sync/test/engine/fake_model_worker.h" | 20 #include "sync/test/engine/fake_model_worker.h" |
21 #include "sync/test/engine/syncer_command_test.h" | 21 #include "sync/test/engine/syncer_command_test.h" |
22 #include "sync/test/engine/test_id_factory.h" | 22 #include "sync/test/engine/test_id_factory.h" |
23 #include "sync/test/fake_sync_encryption_handler.h" | 23 #include "sync/test/fake_sync_encryption_handler.h" |
24 #include "sync/util/cryptographer.h" | 24 #include "sync/util/cryptographer.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace syncer { | 27 namespace syncer { |
28 | 28 |
29 using std::string; | 29 using std::string; |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 const sessions::StatusController& status = session()->status_controller(); | 411 const sessions::StatusController& status = session()->status_controller(); |
412 EXPECT_EQ(1, status.num_encryption_conflicts()) | 412 EXPECT_EQ(1, status.num_encryption_conflicts()) |
413 << "The updates that can't be decrypted should be in encryption " | 413 << "The updates that can't be decrypted should be in encryption " |
414 << "conflict"; | 414 << "conflict"; |
415 EXPECT_EQ(1, status.num_updates_applied()) | 415 EXPECT_EQ(1, status.num_updates_applied()) |
416 << "The undecryptable password update shouldn't be applied"; | 416 << "The undecryptable password update shouldn't be applied"; |
417 } | 417 } |
418 | 418 |
419 } // namespace syncer | 419 } // namespace syncer |
OLD | NEW |