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 <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/scoped_temp_dir.h" | |
15 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/scoped_temp_dir.h" |
| 16 #include "base/string_number_conversions.h" |
16 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
17 #include "base/string_number_conversions.h" | |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/sync/engine/http_post_provider_factory.h" | 20 #include "chrome/browser/sync/engine/http_post_provider_factory.h" |
21 #include "chrome/browser/sync/engine/http_post_provider_interface.h" | 21 #include "chrome/browser/sync/engine/http_post_provider_interface.h" |
22 #include "chrome/browser/sync/engine/model_safe_worker.h" | 22 #include "chrome/browser/sync/engine/model_safe_worker.h" |
23 #include "chrome/browser/sync/engine/syncapi.h" | 23 #include "chrome/browser/sync/engine/syncapi.h" |
24 #include "chrome/browser/sync/js_arg_list.h" | 24 #include "chrome/browser/sync/js_arg_list.h" |
25 #include "chrome/browser/sync/js_backend.h" | 25 #include "chrome/browser/sync/js_backend.h" |
26 #include "chrome/browser/sync/js_event_handler.h" | 26 #include "chrome/browser/sync/js_event_handler.h" |
27 #include "chrome/browser/sync/js_event_router.h" | 27 #include "chrome/browser/sync/js_event_router.h" |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 true /* is encrypted */)); | 1124 true /* is encrypted */)); |
1125 EXPECT_TRUE(syncable::VerifyDataTypeEncryption(trans.GetWrappedTrans(), | 1125 EXPECT_TRUE(syncable::VerifyDataTypeEncryption(trans.GetWrappedTrans(), |
1126 syncable::THEMES, | 1126 syncable::THEMES, |
1127 false /* not encrypted */)); | 1127 false /* not encrypted */)); |
1128 } | 1128 } |
1129 } | 1129 } |
1130 | 1130 |
1131 } // namespace | 1131 } // namespace |
1132 | 1132 |
1133 } // namespace browser_sync | 1133 } // namespace browser_sync |
OLD | NEW |