| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "components/os_crypt/key_storage_libsecret.h" | 8 #include "components/os_crypt/key_storage_libsecret.h" |
| 9 #include "components/os_crypt/libsecret_util_linux.h" | 9 #include "components/os_crypt/libsecret_util_linux.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 TEST_F(LibsecretTest, LibsecretMigratesFromSchemaV1ToV2) { | 235 TEST_F(LibsecretTest, LibsecretMigratesFromSchemaV1ToV2) { |
| 236 KeyStorageLibsecret libsecret; | 236 KeyStorageLibsecret libsecret; |
| 237 MockLibsecretLoader::ResetForOSCrypt(); | 237 MockLibsecretLoader::ResetForOSCrypt(); |
| 238 MockLibsecretLoader::SetDeprecatedOSCryptPassword("swallow"); | 238 MockLibsecretLoader::SetDeprecatedOSCryptPassword("swallow"); |
| 239 std::string password = libsecret.GetKey(); | 239 std::string password = libsecret.GetKey(); |
| 240 EXPECT_EQ("swallow", password); | 240 EXPECT_EQ("swallow", password); |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace | 243 } // namespace |
| OLD | NEW |