| Index: components/proximity_auth/device_to_device_secure_context_unittest.cc
|
| diff --git a/components/proximity_auth/device_to_device_secure_context_unittest.cc b/components/proximity_auth/device_to_device_secure_context_unittest.cc
|
| index 63d449d8b90abc7d4e4e980e3606d7edcbb0d00b..ffa24b25a1fbd766ed19a0cfac8f018b6256f36c 100644
|
| --- a/components/proximity_auth/device_to_device_secure_context_unittest.cc
|
| +++ b/components/proximity_auth/device_to_device_secure_context_unittest.cc
|
| @@ -32,7 +32,7 @@ void SaveResult(std::string* result_out, const std::string& result) {
|
| class ProximityAuthDeviceToDeviceSecureContextTest : public testing::Test {
|
| protected:
|
| ProximityAuthDeviceToDeviceSecureContextTest()
|
| - : secure_context_(base::WrapUnique(new FakeSecureMessageDelegate()),
|
| + : secure_context_(base::MakeUnique<FakeSecureMessageDelegate>(),
|
| kSymmetricKey,
|
| kResponderAuthMessage,
|
| kProtocolVersion) {}
|
| @@ -74,7 +74,7 @@ TEST_F(ProximityAuthDeviceToDeviceSecureContextTest, DecodeInvalidMessage) {
|
| TEST_F(ProximityAuthDeviceToDeviceSecureContextTest, EncodeAndDecode) {
|
| // Initialize second secure channel with the same parameters as the first.
|
| DeviceToDeviceSecureContext secure_context2(
|
| - base::WrapUnique(new FakeSecureMessageDelegate()), kSymmetricKey,
|
| + base::MakeUnique<FakeSecureMessageDelegate>(), kSymmetricKey,
|
| kResponderAuthMessage, kProtocolVersion);
|
| std::string message = "encrypt this message";
|
|
|
| @@ -95,7 +95,7 @@ TEST_F(ProximityAuthDeviceToDeviceSecureContextTest,
|
| DecodeInvalidSequenceNumber) {
|
| // Initialize second secure channel with the same parameters as the first.
|
| DeviceToDeviceSecureContext secure_context2(
|
| - base::WrapUnique(new FakeSecureMessageDelegate()), kSymmetricKey,
|
| + base::MakeUnique<FakeSecureMessageDelegate>(), kSymmetricKey,
|
| kResponderAuthMessage, kProtocolVersion);
|
|
|
| // Send a few messages over the first secure context.
|
|
|