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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 using browser_sync::JsBackend; 64 using browser_sync::JsBackend;
65 using browser_sync::JsEventHandler; 65 using browser_sync::JsEventHandler;
66 using browser_sync::JsReplyHandler; 66 using browser_sync::JsReplyHandler;
67 using browser_sync::MockJsEventHandler; 67 using browser_sync::MockJsEventHandler;
68 using browser_sync::MockJsReplyHandler; 68 using browser_sync::MockJsReplyHandler;
69 using browser_sync::ModelSafeRoutingInfo; 69 using browser_sync::ModelSafeRoutingInfo;
70 using browser_sync::ModelSafeWorker; 70 using browser_sync::ModelSafeWorker;
71 using browser_sync::ModelSafeWorkerRegistrar; 71 using browser_sync::ModelSafeWorkerRegistrar;
72 using browser_sync::sessions::SyncSessionSnapshot; 72 using browser_sync::sessions::SyncSessionSnapshot;
73 using browser_sync::WeakHandle; 73 using browser_sync::WeakHandle;
74 using content::BrowserThread;
74 using syncable::GetAllRealModelTypes; 75 using syncable::GetAllRealModelTypes;
75 using syncable::kEncryptedString; 76 using syncable::kEncryptedString;
76 using syncable::ModelType; 77 using syncable::ModelType;
77 using syncable::ModelTypeSet; 78 using syncable::ModelTypeSet;
78 using test::ExpectDictStringValue; 79 using test::ExpectDictStringValue;
79 using testing::_; 80 using testing::_;
80 using testing::AnyNumber; 81 using testing::AnyNumber;
81 using testing::AtLeast; 82 using testing::AtLeast;
82 using testing::InSequence; 83 using testing::InSequence;
83 using testing::Invoke; 84 using testing::Invoke;
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 EXPECT_EQ(syncable::BOOKMARKS, node2.GetModelType()); 1489 EXPECT_EQ(syncable::BOOKMARKS, node2.GetModelType());
1489 // We should de-canonicalize the title in GetTitle(), but the title in the 1490 // We should de-canonicalize the title in GetTitle(), but the title in the
1490 // specifics should be stored in the server legal form. 1491 // specifics should be stored in the server legal form.
1491 EXPECT_EQ(raw_title2, node2.GetTitle()); 1492 EXPECT_EQ(raw_title2, node2.GetTitle());
1492 EXPECT_EQ(title2, node2.GetBookmarkSpecifics().title()); 1493 EXPECT_EQ(title2, node2.GetBookmarkSpecifics().title());
1493 EXPECT_EQ(url2, node2.GetBookmarkSpecifics().url()); 1494 EXPECT_EQ(url2, node2.GetBookmarkSpecifics().url());
1494 } 1495 }
1495 } 1496 }
1496 1497
1497 } // namespace browser_sync 1498 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/ui_model_worker_unittest.cc ('k') | chrome/browser/sync/notifier/invalidation_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698