Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: sync/internal_api/syncapi_unittest.cc

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/format_macros.h" 15 #include "base/format_macros.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/message_loop_proxy.h" 19 #include "base/message_loop_proxy.h"
20 #include "base/scoped_temp_dir.h" 20 #include "base/scoped_temp_dir.h"
21 #include "base/string_number_conversions.h" 21 #include "base/string_number_conversions.h"
22 #include "base/stringprintf.h" 22 #include "base/stringprintf.h"
23 #include "base/test/values_test_util.h" 23 #include "base/test/values_test_util.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/values.h" 25 #include "base/values.h"
26 #include "sync/engine/nigori_util.h" 26 #include "sync/engine/nigori_util.h"
27 #include "sync/engine/sync_scheduler.h" 27 #include "sync/engine/sync_scheduler.h"
28 #include "sync/internal_api/change_record.h" 28 #include "sync/internal_api/public/change_record.h"
29 #include "sync/internal_api/http_post_provider_factory.h"
30 #include "sync/internal_api/http_post_provider_interface.h"
31 #include "sync/internal_api/public/engine/model_safe_worker.h" 29 #include "sync/internal_api/public/engine/model_safe_worker.h"
32 #include "sync/internal_api/public/engine/polling_constants.h" 30 #include "sync/internal_api/public/engine/polling_constants.h"
31 #include "sync/internal_api/public/http_post_provider_factory.h"
32 #include "sync/internal_api/public/http_post_provider_interface.h"
33 #include "sync/internal_api/public/read_node.h"
34 #include "sync/internal_api/public/read_transaction.h"
35 #include "sync/internal_api/public/sync_manager.h"
33 #include "sync/internal_api/public/syncable/model_type_test_util.h" 36 #include "sync/internal_api/public/syncable/model_type_test_util.h"
34 #include "sync/internal_api/read_node.h" 37 #include "sync/internal_api/public/test/test_user_share.h"
35 #include "sync/internal_api/read_transaction.h" 38 #include "sync/internal_api/public/write_node.h"
36 #include "sync/internal_api/sync_manager.h" 39 #include "sync/internal_api/public/write_transaction.h"
37 #include "sync/internal_api/syncapi_internal.h" 40 #include "sync/internal_api/syncapi_internal.h"
38 #include "sync/internal_api/test_user_share.h"
39 #include "sync/internal_api/write_node.h"
40 #include "sync/internal_api/write_transaction.h"
41 #include "sync/js/js_arg_list.h" 41 #include "sync/js/js_arg_list.h"
42 #include "sync/js/js_backend.h" 42 #include "sync/js/js_backend.h"
43 #include "sync/js/js_event_handler.h" 43 #include "sync/js/js_event_handler.h"
44 #include "sync/js/js_reply_handler.h" 44 #include "sync/js/js_reply_handler.h"
45 #include "sync/js/js_test_util.h" 45 #include "sync/js/js_test_util.h"
46 #include "sync/notifier/sync_notifier.h" 46 #include "sync/notifier/sync_notifier.h"
47 #include "sync/notifier/sync_notifier_observer.h" 47 #include "sync/notifier/sync_notifier_observer.h"
48 #include "sync/protocol/bookmark_specifics.pb.h" 48 #include "sync/protocol/bookmark_specifics.pb.h"
49 #include "sync/protocol/encryption.pb.h" 49 #include "sync/protocol/encryption.pb.h"
50 #include "sync/protocol/extension_specifics.pb.h" 50 #include "sync/protocol/extension_specifics.pb.h"
(...skipping 2539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2590 base::Unretained(&retry_task_counter))); 2590 base::Unretained(&retry_task_counter)));
2591 EXPECT_EQ(0, ready_task_counter.times_called()); 2591 EXPECT_EQ(0, ready_task_counter.times_called());
2592 EXPECT_EQ(1, retry_task_counter.times_called()); 2592 EXPECT_EQ(1, retry_task_counter.times_called());
2593 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RECONFIGURATION, 2593 EXPECT_EQ(sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
2594 params.source); 2594 params.source);
2595 EXPECT_TRUE(types_to_download.Equals(params.types_to_download)); 2595 EXPECT_TRUE(types_to_download.Equals(params.types_to_download));
2596 EXPECT_EQ(new_routing_info, params.routing_info); 2596 EXPECT_EQ(new_routing_info, params.routing_info);
2597 } 2597 }
2598 2598
2599 } // namespace browser_sync 2599 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/internal_api/syncapi_server_connection_manager_unittest.cc ('k') | sync/internal_api/test/test_user_share.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698