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

Side by Side Diff: sync/util/nigori_unittest.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« sync/util/cryptographer_unittest.cc ('K') | « sync/util/nigori.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/util/nigori.h" 5 #include "sync/util/nigori.h"
6 6
7 #include <memory>
Nicolas Zea 2016/04/07 21:48:58 remove
7 #include <string> 8 #include <string>
8 9
9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 namespace { 14 namespace {
15 15
16 TEST(SyncNigoriTest, Permute) { 16 TEST(SyncNigoriTest, Permute) {
17 Nigori nigori; 17 Nigori nigori;
18 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); 18 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password"));
19 19
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 EXPECT_EQ(original, plaintext); 155 EXPECT_EQ(original, plaintext);
156 156
157 std::string permuted1, permuted2; 157 std::string permuted1, permuted2;
158 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1)); 158 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1));
159 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2)); 159 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2));
160 EXPECT_EQ(permuted1, permuted2); 160 EXPECT_EQ(permuted1, permuted2);
161 } 161 }
162 162
163 } // anonymous namespace 163 } // anonymous namespace
164 } // namespace syncer 164 } // namespace syncer
OLDNEW
« sync/util/cryptographer_unittest.cc ('K') | « sync/util/nigori.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698