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

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

Issue 7719011: Move some files from sync/engine to internal_api (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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) 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/format_macros.h" 14 #include "base/format_macros.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "base/scoped_temp_dir.h" 17 #include "base/scoped_temp_dir.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/stringprintf.h" 19 #include "base/stringprintf.h"
20 #include "base/tracked.h" 20 #include "base/tracked.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "chrome/browser/password_manager/encryptor.h" 23 #include "chrome/browser/password_manager/encryptor.h"
24 #include "chrome/browser/sync/engine/http_post_provider_factory.h"
25 #include "chrome/browser/sync/engine/http_post_provider_interface.h"
26 #include "chrome/browser/sync/engine/model_safe_worker.h" 24 #include "chrome/browser/sync/engine/model_safe_worker.h"
27 #include "chrome/browser/sync/engine/nigori_util.h" 25 #include "chrome/browser/sync/engine/nigori_util.h"
26 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h"
27 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h"
28 #include "chrome/browser/sync/internal_api/read_node.h" 28 #include "chrome/browser/sync/internal_api/read_node.h"
29 #include "chrome/browser/sync/internal_api/read_transaction.h" 29 #include "chrome/browser/sync/internal_api/read_transaction.h"
30 #include "chrome/browser/sync/internal_api/sync_manager.h" 30 #include "chrome/browser/sync/internal_api/sync_manager.h"
31 #include "chrome/browser/sync/internal_api/write_node.h" 31 #include "chrome/browser/sync/internal_api/write_node.h"
32 #include "chrome/browser/sync/internal_api/write_transaction.h" 32 #include "chrome/browser/sync/internal_api/write_transaction.h"
33 #include "chrome/browser/sync/js/js_arg_list.h" 33 #include "chrome/browser/sync/js/js_arg_list.h"
34 #include "chrome/browser/sync/js/js_backend.h" 34 #include "chrome/browser/sync/js/js_backend.h"
35 #include "chrome/browser/sync/js/js_event_handler.h" 35 #include "chrome/browser/sync/js/js_event_handler.h"
36 #include "chrome/browser/sync/js/js_reply_handler.h" 36 #include "chrome/browser/sync/js/js_reply_handler.h"
37 #include "chrome/browser/sync/js/js_test_util.h" 37 #include "chrome/browser/sync/js/js_test_util.h"
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 { 1427 {
1428 ReadTransaction trans(FROM_HERE, sync_manager_.GetUserShare()); 1428 ReadTransaction trans(FROM_HERE, sync_manager_.GetUserShare());
1429 ReadNode password_node(&trans); 1429 ReadNode password_node(&trans);
1430 EXPECT_FALSE(password_node.InitByIdLookup(node_id)); 1430 EXPECT_FALSE(password_node.InitByIdLookup(node_id));
1431 } 1431 }
1432 } 1432 }
1433 1433
1434 } // namespace 1434 } // namespace
1435 1435
1436 } // namespace browser_sync 1436 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698