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

Side by Side Diff: components/sync/base/nigori_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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
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 "components/sync/base/nigori.h" 5 #include "components/sync/base/nigori.h"
6 6
7 #include <string>
8
9 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
11 9
12 namespace syncer { 10 namespace syncer {
13 namespace { 11 namespace {
14 12
15 TEST(SyncNigoriTest, Permute) { 13 TEST(SyncNigoriTest, Permute) {
16 Nigori nigori; 14 Nigori nigori;
17 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password")); 15 EXPECT_TRUE(nigori.InitByDerivation("example.com", "username", "password"));
18 16
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 EXPECT_EQ(original, plaintext); 147 EXPECT_EQ(original, plaintext);
150 148
151 std::string permuted1, permuted2; 149 std::string permuted1, permuted2;
152 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1)); 150 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1));
153 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2)); 151 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2));
154 EXPECT_EQ(permuted1, permuted2); 152 EXPECT_EQ(permuted1, permuted2);
155 } 153 }
156 154
157 } // anonymous namespace 155 } // anonymous namespace
158 } // namespace syncer 156 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/base/model_type_test_util.cc ('k') | components/sync/base/node_ordinal_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698