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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
« no previous file with comments | « sync/util/nigori.cc ('k') | sync/util/protobuf_unittest.cc » ('j') | 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 "chrome/browser/sync/util/nigori.h" 5 #include "sync/util/nigori.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 namespace { 14 namespace {
15 15
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 EXPECT_EQ(original, plaintext); 161 EXPECT_EQ(original, plaintext);
162 162
163 std::string permuted1, permuted2; 163 std::string permuted1, permuted2;
164 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1)); 164 EXPECT_TRUE(nigori1.Permute(Nigori::Password, original, &permuted1));
165 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2)); 165 EXPECT_TRUE(nigori2.Permute(Nigori::Password, original, &permuted2));
166 EXPECT_EQ(permuted1, permuted2); 166 EXPECT_EQ(permuted1, permuted2);
167 } 167 }
168 168
169 } // anonymous namespace 169 } // anonymous namespace
170 } // namespace browser_sync 170 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/util/nigori.cc ('k') | sync/util/protobuf_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698