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/util/cryptographer.h" | 5 #include "chrome/browser/sync/encryption/cryptographer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/password_manager/encryptor.h" | 11 #include "chrome/browser/password_manager/encryptor.h" |
12 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" | 12 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" |
13 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | 13 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 *iter == syncable::BOOKMARKS) | 355 *iter == syncable::BOOKMARKS) |
356 EXPECT_EQ(1U, encrypted_types.count(*iter)); | 356 EXPECT_EQ(1U, encrypted_types.count(*iter)); |
357 else | 357 else |
358 EXPECT_EQ(0U, encrypted_types.count(*iter)); | 358 EXPECT_EQ(0U, encrypted_types.count(*iter)); |
359 } | 359 } |
360 | 360 |
361 cryptographer.RemoveObserver(&observer); | 361 cryptographer.RemoveObserver(&observer); |
362 } | 362 } |
363 | 363 |
364 } // namespace browser_sync | 364 } // namespace browser_sync |
OLD | NEW |