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/syncable/directory_unittest.h" | 5 #include "components/sync/syncable/directory_unittest.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | |
9 | 8 |
10 #include <cstdlib> | 9 #include <cstdlib> |
11 | 10 |
12 #include "base/macros.h" | 11 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
14 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
15 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
16 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
17 #include "base/test/values_test_util.h" | 16 #include "base/test/values_test_util.h" |
18 #include "components/sync/base/attachment_id_proto.h" | 17 #include "components/sync/base/attachment_id_proto.h" |
19 #include "components/sync/base/mock_unrecoverable_error_handler.h" | 18 #include "components/sync/base/mock_unrecoverable_error_handler.h" |
20 #include "components/sync/syncable/syncable_proto_util.h" | 19 #include "components/sync/syncable/syncable_proto_util.h" |
21 #include "components/sync/syncable/syncable_util.h" | 20 #include "components/sync/syncable/syncable_util.h" |
22 #include "components/sync/syncable/syncable_write_transaction.h" | |
23 #include "components/sync/test/engine/test_syncable_utils.h" | 21 #include "components/sync/test/engine/test_syncable_utils.h" |
24 #include "components/sync/test/test_directory_backing_store.h" | 22 #include "components/sync/test/test_directory_backing_store.h" |
25 | 23 |
26 using base::ExpectDictBooleanValue; | 24 using base::ExpectDictBooleanValue; |
27 using base::ExpectDictStringValue; | 25 using base::ExpectDictStringValue; |
28 | 26 |
29 namespace syncer { | 27 namespace syncer { |
30 | 28 |
31 namespace syncable { | 29 namespace syncable { |
32 | 30 |
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2139 | 2137 |
2140 const base::DictionaryValue* first_result; | 2138 const base::DictionaryValue* first_result; |
2141 ASSERT_TRUE(nodes->GetDictionary(0, &first_result)); | 2139 ASSERT_TRUE(nodes->GetDictionary(0, &first_result)); |
2142 EXPECT_TRUE(first_result->HasKey("ID")); | 2140 EXPECT_TRUE(first_result->HasKey("ID")); |
2143 EXPECT_TRUE(first_result->HasKey("NON_UNIQUE_NAME")); | 2141 EXPECT_TRUE(first_result->HasKey("NON_UNIQUE_NAME")); |
2144 } | 2142 } |
2145 | 2143 |
2146 } // namespace syncable | 2144 } // namespace syncable |
2147 | 2145 |
2148 } // namespace syncer | 2146 } // namespace syncer |
OLD | NEW |