OLD | NEW |
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 Loading... |
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 |
OLD | NEW |