OLD | NEW |
1 // Copyright 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/strings/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/syncable_id.h" | 16 #include "sync/syncable/syncable_id.h" |
17 #include "sync/syncable/syncable_read_transaction.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/syncable_write_transaction.h" | 19 #include "sync/syncable/syncable_write_transaction.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 407 |
408 const sessions::StatusController& status = session()->status_controller(); | 408 const sessions::StatusController& status = session()->status_controller(); |
409 EXPECT_EQ(1, status.num_encryption_conflicts()) | 409 EXPECT_EQ(1, status.num_encryption_conflicts()) |
410 << "The updates that can't be decrypted should be in encryption " | 410 << "The updates that can't be decrypted should be in encryption " |
411 << "conflict"; | 411 << "conflict"; |
412 EXPECT_EQ(1, status.num_updates_applied()) | 412 EXPECT_EQ(1, status.num_updates_applied()) |
413 << "The undecryptable password update shouldn't be applied"; | 413 << "The undecryptable password update shouldn't be applied"; |
414 } | 414 } |
415 | 415 |
416 } // namespace syncer | 416 } // namespace syncer |
OLD | NEW |