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

Side by Side Diff: chrome/browser/sync/engine/nigori_util_unittest.cc

Issue 8468023: Move encryption related files from util folder to encryption folder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. 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 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 5 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
6 #include "chrome/browser/sync/util/cryptographer.h" 6 #include "chrome/browser/sync/encryption/cryptographer.h"
7 #include "chrome/browser/sync/engine/nigori_util.h" 7 #include "chrome/browser/sync/engine/nigori_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace syncable { 10 namespace syncable {
11 11
12 typedef testing::Test NigoriUtilTest; 12 typedef testing::Test NigoriUtilTest;
13 13
14 TEST(NigoriUtilTest, SpecificsNeedsEncryption) { 14 TEST(NigoriUtilTest, SpecificsNeedsEncryption) {
15 ModelTypeSet encrypted_types; 15 ModelTypeSet encrypted_types;
16 encrypted_types.insert(BOOKMARKS); 16 encrypted_types.insert(BOOKMARKS);
(...skipping 21 matching lines...) Expand all
38 38
39 sync_pb::EntitySpecifics password_specifics; 39 sync_pb::EntitySpecifics password_specifics;
40 AddDefaultExtensionValue(PASSWORDS, &password_specifics); 40 AddDefaultExtensionValue(PASSWORDS, &password_specifics);
41 EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, password_specifics)); 41 EXPECT_FALSE(SpecificsNeedsEncryption(encrypted_types, password_specifics));
42 } 42 }
43 43
44 // ProcessUnsyncedChangesForEncryption and other methods that rely on the syncer 44 // ProcessUnsyncedChangesForEncryption and other methods that rely on the syncer
45 // are tested in apply_updates_command_unittest.cc 45 // are tested in apply_updates_command_unittest.cc
46 46
47 } // namespace syncable 47 } // namespace syncable
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698