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

Side by Side Diff: crypto/openpgp_symmetric_encryption_test_nss.cc

Issue 7273080: crypto: convert OpenPGP code to NSS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698