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

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

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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/location.h"
15 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
16 #include "base/message_loop.h" 17 #include "base/message_loop.h"
17 #include "base/scoped_temp_dir.h" 18 #include "base/scoped_temp_dir.h"
18 #include "base/string_number_conversions.h" 19 #include "base/string_number_conversions.h"
19 #include "base/stringprintf.h" 20 #include "base/stringprintf.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/model_safe_worker.h" 24 #include "chrome/browser/sync/engine/model_safe_worker.h"
25 #include "chrome/browser/sync/engine/nigori_util.h" 25 #include "chrome/browser/sync/engine/nigori_util.h"
26 #include "chrome/browser/sync/internal_api/change_record.h" 26 #include "chrome/browser/sync/internal_api/change_record.h"
27 #include "chrome/browser/sync/engine/syncapi_internal.h" 27 #include "chrome/browser/sync/engine/syncapi_internal.h"
28 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h" 28 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h"
29 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h" 29 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h"
30 #include "chrome/browser/sync/internal_api/read_node.h" 30 #include "chrome/browser/sync/internal_api/read_node.h"
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 EXPECT_EQ(syncable::BOOKMARKS, node2.GetModelType()); 1585 EXPECT_EQ(syncable::BOOKMARKS, node2.GetModelType());
1586 // We should de-canonicalize the title in GetTitle(), but the title in the 1586 // We should de-canonicalize the title in GetTitle(), but the title in the
1587 // specifics should be stored in the server legal form. 1587 // specifics should be stored in the server legal form.
1588 EXPECT_EQ(raw_title2, node2.GetTitle()); 1588 EXPECT_EQ(raw_title2, node2.GetTitle());
1589 EXPECT_EQ(title2, node2.GetBookmarkSpecifics().title()); 1589 EXPECT_EQ(title2, node2.GetBookmarkSpecifics().title());
1590 EXPECT_EQ(url2, node2.GetBookmarkSpecifics().url()); 1590 EXPECT_EQ(url2, node2.GetBookmarkSpecifics().url());
1591 } 1591 }
1592 } 1592 }
1593 1593
1594 } // namespace browser_sync 1594 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/typed_url_model_associator.cc ('k') | chrome/browser/sync/js/js_sync_manager_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698