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

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

Issue 7587009: sync: add DEPS files to subdirs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/util/cryptographer.h" 5 #include "chrome/browser/sync/util/cryptographer.h"
6 #include "chrome/browser/sync/syncable/nigori_util.h" 6 #include "chrome/browser/sync/engine/nigori_util.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace syncable { 9 namespace syncable {
10 10
11 typedef testing::Test NigoriUtilTest; 11 typedef testing::Test NigoriUtilTest;
12 12
13 TEST_F(NigoriUtilTest, NigoriEncryptionTypes) { 13 TEST_F(NigoriUtilTest, NigoriEncryptionTypes) {
14 browser_sync::Cryptographer cryptographer; 14 browser_sync::Cryptographer cryptographer;
15 sync_pb::NigoriSpecifics nigori; 15 sync_pb::NigoriSpecifics nigori;
16 ModelTypeSet encrypted_types; 16 ModelTypeSet encrypted_types;
(...skipping 17 matching lines...) Expand all
34 FillNigoriEncryptedTypes(encrypted_types, &nigori); 34 FillNigoriEncryptedTypes(encrypted_types, &nigori);
35 cryptographer.SetEncryptedTypes(nigori); 35 cryptographer.SetEncryptedTypes(nigori);
36 test_types = cryptographer.GetEncryptedTypes(); 36 test_types = cryptographer.GetEncryptedTypes();
37 EXPECT_EQ(encrypted_types, test_types); 37 EXPECT_EQ(encrypted_types, test_types);
38 } 38 }
39 39
40 // ProcessUnsyncedChangesForEncryption and other methods that rely on the syncer 40 // ProcessUnsyncedChangesForEncryption and other methods that rely on the syncer
41 // are tested in apply_updates_command_unittest.cc 41 // are tested in apply_updates_command_unittest.cc
42 42
43 } // namespace syncable 43 } // namespace syncable
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/nigori_util.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698