OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Unit tests for the SyncApi. Note that a lot of the underlying | 5 // Unit tests for the SyncApi. Note that a lot of the underlying |
6 // functionality is provided by the Syncable layer, which has its own | 6 // functionality is provided by the Syncable layer, which has its own |
7 // unit tests. We'll test SyncApi specific things in this harness. | 7 // unit tests. We'll test SyncApi specific things in this harness. |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <map> | 10 #include <map> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 34 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
35 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | 35 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
36 #include "chrome/browser/sync/protocol/sync.pb.h" | 36 #include "chrome/browser/sync/protocol/sync.pb.h" |
37 #include "chrome/browser/sync/protocol/proto_value_conversions.h" | 37 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
38 #include "chrome/browser/sync/sessions/sync_session.h" | 38 #include "chrome/browser/sync/sessions/sync_session.h" |
39 #include "chrome/browser/sync/syncable/directory_manager.h" | 39 #include "chrome/browser/sync/syncable/directory_manager.h" |
40 #include "chrome/browser/sync/syncable/nigori_util.h" | 40 #include "chrome/browser/sync/syncable/nigori_util.h" |
41 #include "chrome/browser/sync/syncable/syncable.h" | 41 #include "chrome/browser/sync/syncable/syncable.h" |
42 #include "chrome/browser/sync/syncable/syncable_id.h" | 42 #include "chrome/browser/sync/syncable/syncable_id.h" |
43 #include "chrome/browser/sync/util/cryptographer.h" | 43 #include "chrome/browser/sync/util/cryptographer.h" |
| 44 #include "chrome/test/base/values_test_util.h" |
44 #include "chrome/test/sync/engine/test_user_share.h" | 45 #include "chrome/test/sync/engine/test_user_share.h" |
45 #include "chrome/test/values_test_util.h" | |
46 #include "content/browser/browser_thread.h" | 46 #include "content/browser/browser_thread.h" |
47 #include "testing/gmock/include/gmock/gmock.h" | 47 #include "testing/gmock/include/gmock/gmock.h" |
48 #include "testing/gtest/include/gtest/gtest.h" | 48 #include "testing/gtest/include/gtest/gtest.h" |
49 | 49 |
50 using browser_sync::Cryptographer; | 50 using browser_sync::Cryptographer; |
51 using browser_sync::HasArgsAsList; | 51 using browser_sync::HasArgsAsList; |
52 using browser_sync::HasDetailsAsDictionary; | 52 using browser_sync::HasDetailsAsDictionary; |
53 using browser_sync::KeyParams; | 53 using browser_sync::KeyParams; |
54 using browser_sync::JsArgList; | 54 using browser_sync::JsArgList; |
55 using browser_sync::MockJsEventHandler; | 55 using browser_sync::MockJsEventHandler; |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 { | 1441 { |
1442 ReadTransaction trans(FROM_HERE, sync_manager_.GetUserShare()); | 1442 ReadTransaction trans(FROM_HERE, sync_manager_.GetUserShare()); |
1443 ReadNode password_node(&trans); | 1443 ReadNode password_node(&trans); |
1444 EXPECT_FALSE(password_node.InitByIdLookup(node_id)); | 1444 EXPECT_FALSE(password_node.InitByIdLookup(node_id)); |
1445 } | 1445 } |
1446 } | 1446 } |
1447 | 1447 |
1448 } // namespace | 1448 } // namespace |
1449 | 1449 |
1450 } // namespace browser_sync | 1450 } // namespace browser_sync |
OLD | NEW |