| 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 "crypto/openpgp_symmetric_encryption.h" | 5 #include "crypto/openpgp_symmetric_encryption.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace crypto { | 9 namespace crypto { |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 std::string out; | 106 std::string out; |
| 107 OpenPGPSymmetricEncrytion::Result r = | 107 OpenPGPSymmetricEncrytion::Result r = |
| 108 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); | 108 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); |
| 109 EXPECT_EQ(OpenPGPSymmetricEncrytion::OK, r); | 109 EXPECT_EQ(OpenPGPSymmetricEncrytion::OK, r); |
| 110 EXPECT_EQ("Hello world\n", out); | 110 EXPECT_EQ("Hello world\n", out); |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 | 113 |
| 114 } // namespace crypto | 114 } // namespace crypto |
| OLD | NEW |