OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proximity_auth/device_to_device_authenticator.h" | 5 #include "components/proximity_auth/device_to_device_authenticator.h" |
6 | 6 |
7 #include "base/base64url.h" | 7 #include "base/base64url.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
10 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
11 #include "base/timer/mock_timer.h" | 12 #include "base/timer/mock_timer.h" |
12 #include "components/proximity_auth/connection.h" | 13 #include "components/proximity_auth/connection.h" |
13 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | 14 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
14 #include "components/proximity_auth/device_to_device_responder_operations.h" | 15 #include "components/proximity_auth/device_to_device_responder_operations.h" |
15 #include "components/proximity_auth/proximity_auth_test_util.h" | 16 #include "components/proximity_auth/proximity_auth_test_util.h" |
16 #include "components/proximity_auth/secure_context.h" | 17 #include "components/proximity_auth/secure_context.h" |
17 #include "components/proximity_auth/wire_message.h" | 18 #include "components/proximity_auth/wire_message.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 WireMessage wire_message(base::RandBytesAsString(300u)); | 339 WireMessage wire_message(base::RandBytesAsString(300u)); |
339 connection_.SendMessage( | 340 connection_.SendMessage( |
340 make_scoped_ptr(new WireMessage(base::RandBytesAsString(300u)))); | 341 make_scoped_ptr(new WireMessage(base::RandBytesAsString(300u)))); |
341 connection_.OnBytesReceived(wire_message.Serialize()); | 342 connection_.OnBytesReceived(wire_message.Serialize()); |
342 connection_.SendMessage( | 343 connection_.SendMessage( |
343 make_scoped_ptr(new WireMessage(base::RandBytesAsString(300u)))); | 344 make_scoped_ptr(new WireMessage(base::RandBytesAsString(300u)))); |
344 connection_.OnBytesReceived(wire_message.Serialize()); | 345 connection_.OnBytesReceived(wire_message.Serialize()); |
345 } | 346 } |
346 | 347 |
347 } // namespace proximity_auth | 348 } // namespace proximity_auth |
OLD | NEW |