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

Unified Diff: components/cryptauth/secure_channel_unittest.cc

Issue 2697763002: [CrOS Tether]: Create BleConnectionManager, which manages secure connections between the current de… (Closed)
Patch Set: Add missing DEP. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cryptauth/secure_channel.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/secure_channel_unittest.cc
diff --git a/components/cryptauth/secure_channel_unittest.cc b/components/cryptauth/secure_channel_unittest.cc
index 02b3c292cdda19835bd0ecb3e4f196b6e9665dc3..3e7968cdb6e9ba9bc3d4bd3999fd7e9606597e62 100644
--- a/components/cryptauth/secure_channel_unittest.cc
+++ b/components/cryptauth/secure_channel_unittest.cc
@@ -119,6 +119,13 @@ RemoteDevice CreateTestRemoteDevice() {
return remote_device;
}
+class TestSecureChannel : public SecureChannel {
+ public:
+ TestSecureChannel(std::unique_ptr<Connection> connection,
+ std::unique_ptr<Delegate> delegate)
+ : SecureChannel(std::move(connection), std::move(delegate)) {}
+};
+
} // namespace
class CryptAuthSecureChannelTest : public testing::Test {
@@ -143,7 +150,7 @@ class CryptAuthSecureChannelTest : public testing::Test {
new FakeConnection(test_device_, /* should_auto_connect */ false);
EXPECT_FALSE(fake_connection_->observers().size());
- secure_channel_ = base::MakeUnique<SecureChannel>(
+ secure_channel_ = base::MakeUnique<TestSecureChannel>(
base::WrapUnique(fake_connection_), base::WrapUnique(test_delegate_));
EXPECT_EQ(static_cast<size_t>(1), fake_connection_->observers().size());
EXPECT_EQ(secure_channel_.get(), fake_connection_->observers()[0]);
« no previous file with comments | « components/cryptauth/secure_channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698