| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |