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

Unified Diff: chrome/browser/sync/engine/nigori_util_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/nudge_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/nigori_util_unittest.cc
diff --git a/chrome/browser/sync/engine/nigori_util_unittest.cc b/chrome/browser/sync/engine/nigori_util_unittest.cc
deleted file mode 100644
index e0d5053c8558418eafd5dde94525a3767c407e61..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/engine/nigori_util_unittest.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/engine/nigori_util.h"
-#include "chrome/browser/sync/util/cryptographer.h"
-#include "sync/protocol/bookmark_specifics.pb.h"
-#include "sync/protocol/sync.pb.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace syncable {
-
-typedef testing::Test NigoriUtilTest;
-
-TEST(NigoriUtilTest, SpecificsNeedsEncryption) {
- ModelTypeSet encrypted_types;
- encrypted_types.Put(BOOKMARKS);
- encrypted_types.Put(PASSWORDS);
-
- sync_pb::EntitySpecifics specifics;
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), specifics));
- EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, specifics));
-
- AddDefaultFieldValue(PREFERENCES, &specifics);
- EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, specifics));
-
- sync_pb::EntitySpecifics bookmark_specifics;
- AddDefaultFieldValue(BOOKMARKS, &bookmark_specifics);
- EXPECT_TRUE(SpecificsNeedsEncryption(encrypted_types, bookmark_specifics));
-
- bookmark_specifics.mutable_bookmark()->set_title("title");
- bookmark_specifics.mutable_bookmark()->set_url("url");
- EXPECT_TRUE(SpecificsNeedsEncryption(encrypted_types, bookmark_specifics));
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), bookmark_specifics));
-
- bookmark_specifics.mutable_encrypted();
- EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, bookmark_specifics));
- EXPECT_FALSE(SpecificsNeedsEncryption(ModelTypeSet(), bookmark_specifics));
-
- sync_pb::EntitySpecifics password_specifics;
- AddDefaultFieldValue(PASSWORDS, &password_specifics);
- EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, password_specifics));
-}
-
-// ProcessUnsyncedChangesForEncryption and other methods that rely on the syncer
-// are tested in apply_updates_command_unittest.cc
-
-} // namespace syncable
« no previous file with comments | « chrome/browser/sync/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/nudge_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698