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

Unified Diff: components/sync/base/hash_util_unittest.cc

Issue 2502253003: [Sync] Move GenerateSyncableHash to base. (Closed)
Patch Set: Keep full syncable/ DEP. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/base/hash_util_unittest.cc
diff --git a/components/sync/syncable/syncable_util_unittest.cc b/components/sync/base/hash_util_unittest.cc
similarity index 84%
rename from components/sync/syncable/syncable_util_unittest.cc
rename to components/sync/base/hash_util_unittest.cc
index 6bb2b065283e4b2cab6694248ff1fd0ea009e520..e43dd52c450c0334081d563773e4f7fc02ca081e 100644
--- a/components/sync/syncable/syncable_util_unittest.cc
+++ b/components/sync/base/hash_util_unittest.cc
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/sync/base/hash_util.h"
+
#include "components/sync/base/model_type.h"
-#include "components/sync/syncable/syncable_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
-namespace syncable {
-namespace {
// Tests that the hashing algorithm has not changed.
-TEST(SyncableUtilTest, GenerateSyncableHash) {
+TEST(SyncHashUtilTest, GenerateSyncableHash) {
EXPECT_EQ("OyaXV5mEzrPS4wbogmtKvRfekAI=",
GenerateSyncableHash(BOOKMARKS, "tag1"));
EXPECT_EQ("iNFQtRFQb+IZcn1kKUJEZDDkLs4=",
@@ -27,6 +26,4 @@ TEST(SyncableUtilTest, GenerateSyncableHash) {
GenerateSyncableHash(AUTOFILL, "tag2"));
}
-} // namespace
-} // namespace syncable
} // namespace syncer
« no previous file with comments | « components/sync/base/hash_util.cc ('k') | components/sync/engine_impl/loopback_server/persistent_unique_client_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698