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

Side by Side Diff: sync/util/cryptographer_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
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/cryptographer.h" 5 #include "sync/util/cryptographer.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 "sync/protocol/password_specifics.pb.h" 11 #include "sync/protocol/password_specifics.pb.h"
12 #include "sync/test/fake_encryptor.h" 12 #include "sync/test/fake_encryptor.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace syncer { 16 namespace syncer {
17 17
18 namespace { 18 namespace {
19 19
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 ASSERT_TRUE(another_cryptographer.CanDecrypt(keys)); 298 ASSERT_TRUE(another_cryptographer.CanDecrypt(keys));
299 another_cryptographer.InstallKeys(keys); 299 another_cryptographer.InstallKeys(keys);
300 300
301 // Verify that bootstrapped cryptographer decrypts succesfully using 301 // Verify that bootstrapped cryptographer decrypts succesfully using
302 // all the keys after key installation. 302 // all the keys after key installation.
303 EXPECT_TRUE(another_cryptographer.CanDecrypt(encrypted_k1)); 303 EXPECT_TRUE(another_cryptographer.CanDecrypt(encrypted_k1));
304 EXPECT_TRUE(another_cryptographer.CanDecrypt(encrypted_k2)); 304 EXPECT_TRUE(another_cryptographer.CanDecrypt(encrypted_k2));
305 } 305 }
306 306
307 } // namespace syncer 307 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698