[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "net/socket/websocket_endpoint_lock_manager.h" |
| 6 | |
tbansal | f82cc8e | 2015-10-14 20:05:49 | [diff] [blame] | 7 | #include "base/logging.h" |
Avi Drissman | 13fc893 | 2015-12-20 04:40:46 | [diff] [blame] | 8 | #include "base/macros.h" |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 9 | #include "base/run_loop.h" |
| 10 | #include "base/time/time.h" |
martijn | a2e83bd | 2016-03-18 13:10:45 | [diff] [blame] | 11 | #include "net/base/ip_address.h" |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 12 | #include "net/base/net_errors.h" |
mikecirone | f22f981 | 2016-10-04 03:40:19 | [diff] [blame] | 13 | #include "net/log/net_log_with_source.h" |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 14 | #include "net/socket/next_proto.h" |
| 15 | #include "net/socket/socket_test_util.h" |
robpercival | 214763f | 2016-07-01 23:27:01 | [diff] [blame] | 16 | #include "net/test/gtest_util.h" |
Gabriel Charette | c710874 | 2019-08-23 03:31:40 | [diff] [blame^] | 17 | #include "net/test/test_with_task_environment.h" |
[email protected] | a2b2cfc | 2017-12-06 09:06:08 | [diff] [blame] | 18 | #include "net/traffic_annotation/network_traffic_annotation.h" |
robpercival | 214763f | 2016-07-01 23:27:01 | [diff] [blame] | 19 | #include "testing/gmock/include/gmock/gmock.h" |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 20 | #include "testing/gtest/include/gtest/gtest.h" |
| 21 | |
robpercival | 214763f | 2016-07-01 23:27:01 | [diff] [blame] | 22 | using net::test::IsOk; |
| 23 | |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 24 | namespace net { |
| 25 | |
| 26 | namespace { |
| 27 | |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 28 | class FakeWaiter : public WebSocketEndpointLockManager::Waiter { |
| 29 | public: |
| 30 | FakeWaiter() : called_(false) {} |
| 31 | |
dcheng | b03027d | 2014-10-21 12:00:20 | [diff] [blame] | 32 | void GotEndpointLock() override { |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 33 | CHECK(!called_); |
| 34 | called_ = true; |
| 35 | } |
| 36 | |
| 37 | bool called() const { return called_; } |
| 38 | |
| 39 | private: |
| 40 | bool called_; |
| 41 | }; |
| 42 | |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 43 | class BlockingWaiter : public FakeWaiter { |
| 44 | public: |
| 45 | void WaitForLock() { |
| 46 | while (!called()) { |
| 47 | run_loop_.Run(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void GotEndpointLock() override { |
| 52 | FakeWaiter::GotEndpointLock(); |
| 53 | run_loop_.Quit(); |
| 54 | } |
| 55 | |
| 56 | private: |
| 57 | base::RunLoop run_loop_; |
| 58 | }; |
| 59 | |
Gabriel Charette | 694c3c33 | 2019-08-19 14:53:05 | [diff] [blame] | 60 | class WebSocketEndpointLockManagerTest : public TestWithTaskEnvironment { |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 61 | protected: |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 62 | WebSocketEndpointLockManagerTest() { |
| 63 | websocket_endpoint_lock_manager_.SetUnlockDelayForTesting( |
| 64 | base::TimeDelta()); |
| 65 | } |
| 66 | |
dcheng | 67be2b1f | 2014-10-27 21:47:29 | [diff] [blame] | 67 | ~WebSocketEndpointLockManagerTest() override { |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 68 | // Permit any pending asynchronous unlock operations to complete. |
| 69 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 70 | // If this check fails then subsequent tests may fail. |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 71 | CHECK(websocket_endpoint_lock_manager_.IsEmpty()); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 72 | } |
| 73 | |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 74 | IPEndPoint DummyEndpoint() { |
martijn | a2e83bd | 2016-03-18 13:10:45 | [diff] [blame] | 75 | return IPEndPoint(IPAddress::IPv4Localhost(), 80); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | void UnlockDummyEndpoint(int times) { |
| 79 | for (int i = 0; i < times; ++i) { |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 80 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 81 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 82 | } |
| 83 | } |
| 84 | |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 85 | static void RunUntilIdle() { base::RunLoop().RunUntilIdle(); } |
| 86 | |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 87 | WebSocketEndpointLockManager websocket_endpoint_lock_manager_; |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 88 | }; |
| 89 | |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 90 | TEST_F(WebSocketEndpointLockManagerTest, LockEndpointReturnsOkOnce) { |
| 91 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 92 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 93 | &waiters[0]), |
| 94 | IsOk()); |
| 95 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 96 | DummyEndpoint(), &waiters[1])); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 97 | |
| 98 | UnlockDummyEndpoint(2); |
| 99 | } |
| 100 | |
| 101 | TEST_F(WebSocketEndpointLockManagerTest, GotEndpointLockNotCalledOnOk) { |
| 102 | FakeWaiter waiter; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 103 | EXPECT_THAT( |
| 104 | websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), &waiter), |
| 105 | IsOk()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 106 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 107 | EXPECT_FALSE(waiter.called()); |
| 108 | |
| 109 | UnlockDummyEndpoint(1); |
| 110 | } |
| 111 | |
| 112 | TEST_F(WebSocketEndpointLockManagerTest, GotEndpointLockNotCalledImmediately) { |
| 113 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 114 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 115 | &waiters[0]), |
| 116 | IsOk()); |
| 117 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 118 | DummyEndpoint(), &waiters[1])); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 119 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 120 | EXPECT_FALSE(waiters[1].called()); |
| 121 | |
| 122 | UnlockDummyEndpoint(2); |
| 123 | } |
| 124 | |
| 125 | TEST_F(WebSocketEndpointLockManagerTest, GotEndpointLockCalledWhenUnlocked) { |
| 126 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 127 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 128 | &waiters[0]), |
| 129 | IsOk()); |
| 130 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 131 | DummyEndpoint(), &waiters[1])); |
| 132 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 133 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 134 | EXPECT_TRUE(waiters[1].called()); |
| 135 | |
| 136 | UnlockDummyEndpoint(1); |
| 137 | } |
| 138 | |
| 139 | TEST_F(WebSocketEndpointLockManagerTest, |
| 140 | EndpointUnlockedIfWaiterAlreadyDeleted) { |
| 141 | FakeWaiter first_lock_holder; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 142 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 143 | &first_lock_holder), |
robpercival | 214763f | 2016-07-01 23:27:01 | [diff] [blame] | 144 | IsOk()); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 145 | |
| 146 | { |
| 147 | FakeWaiter short_lived_waiter; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 148 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 149 | DummyEndpoint(), &short_lived_waiter)); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 150 | } |
| 151 | |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 152 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 153 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 154 | |
| 155 | FakeWaiter second_lock_holder; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 156 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint( |
| 157 | DummyEndpoint(), &second_lock_holder), |
robpercival | 214763f | 2016-07-01 23:27:01 | [diff] [blame] | 158 | IsOk()); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 159 | |
| 160 | UnlockDummyEndpoint(1); |
| 161 | } |
| 162 | |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 163 | TEST_F(WebSocketEndpointLockManagerTest, LockReleaserWorks) { |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 164 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 165 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 166 | &waiters[0]), |
| 167 | IsOk()); |
| 168 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 169 | DummyEndpoint(), &waiters[1])); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 170 | |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 171 | { |
| 172 | WebSocketEndpointLockManager::LockReleaser releaser( |
| 173 | &websocket_endpoint_lock_manager_, DummyEndpoint()); |
| 174 | } |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 175 | RunUntilIdle(); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 176 | EXPECT_TRUE(waiters[1].called()); |
| 177 | |
| 178 | UnlockDummyEndpoint(1); |
| 179 | } |
| 180 | |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 181 | // UnlockEndpoint() should cause any LockReleasers for this endpoint to be |
| 182 | // unregistered. |
| 183 | TEST_F(WebSocketEndpointLockManagerTest, LockReleaserForgottenOnUnlock) { |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 184 | FakeWaiter waiter; |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 185 | |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 186 | EXPECT_THAT( |
| 187 | websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), &waiter), |
| 188 | IsOk()); |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 189 | WebSocketEndpointLockManager::LockReleaser releaser( |
| 190 | &websocket_endpoint_lock_manager_, DummyEndpoint()); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 191 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 192 | RunUntilIdle(); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 193 | EXPECT_TRUE(websocket_endpoint_lock_manager_.IsEmpty()); |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 194 | } |
| 195 | |
| 196 | // When ownership of the endpoint is passed to a new waiter, the new waiter can |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 197 | // construct another LockReleaser. |
| 198 | TEST_F(WebSocketEndpointLockManagerTest, NextWaiterCanCreateLockReleaserAgain) { |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 199 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 200 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 201 | &waiters[0]), |
| 202 | IsOk()); |
| 203 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 204 | DummyEndpoint(), &waiters[1])); |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 205 | |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 206 | WebSocketEndpointLockManager::LockReleaser releaser1( |
| 207 | &websocket_endpoint_lock_manager_, DummyEndpoint()); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 208 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 209 | RunUntilIdle(); |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 210 | EXPECT_TRUE(waiters[1].called()); |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 211 | WebSocketEndpointLockManager::LockReleaser releaser2( |
| 212 | &websocket_endpoint_lock_manager_, DummyEndpoint()); |
[email protected] | 6bcd67d | 2014-08-05 16:31:24 | [diff] [blame] | 213 | |
| 214 | UnlockDummyEndpoint(1); |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 215 | } |
| 216 | |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 217 | // Destroying LockReleaser after UnlockEndpoint() does nothing. |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 218 | TEST_F(WebSocketEndpointLockManagerTest, |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 219 | DestroyLockReleaserAfterUnlockEndpointDoesNothing) { |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 220 | FakeWaiter waiters[3]; |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 221 | |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 222 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 223 | &waiters[0]), |
| 224 | IsOk()); |
| 225 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 226 | DummyEndpoint(), &waiters[1])); |
| 227 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 228 | DummyEndpoint(), &waiters[2])); |
Adam Rice | a0e7139 | 2019-02-14 13:29:41 | [diff] [blame] | 229 | { |
| 230 | WebSocketEndpointLockManager::LockReleaser releaser( |
| 231 | &websocket_endpoint_lock_manager_, DummyEndpoint()); |
| 232 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
| 233 | } |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 234 | RunUntilIdle(); |
| 235 | EXPECT_TRUE(waiters[1].called()); |
| 236 | EXPECT_FALSE(waiters[2].called()); |
| 237 | |
| 238 | UnlockDummyEndpoint(2); |
| 239 | } |
| 240 | |
| 241 | // UnlockEndpoint() should always be asynchronous. |
| 242 | TEST_F(WebSocketEndpointLockManagerTest, UnlockEndpointIsAsynchronous) { |
| 243 | FakeWaiter waiters[2]; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 244 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 245 | &waiters[0]), |
| 246 | IsOk()); |
| 247 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 248 | DummyEndpoint(), &waiters[1])); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 249 | |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 250 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 251 | EXPECT_FALSE(waiters[1].called()); |
| 252 | RunUntilIdle(); |
| 253 | EXPECT_TRUE(waiters[1].called()); |
| 254 | |
| 255 | UnlockDummyEndpoint(1); |
| 256 | } |
| 257 | |
| 258 | // UnlockEndpoint() should normally have a delay. |
| 259 | TEST_F(WebSocketEndpointLockManagerTest, UnlockEndpointIsDelayed) { |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 260 | using base::TimeTicks; |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 261 | |
ricea | ba68362 | 2015-02-01 18:16:53 | [diff] [blame] | 262 | // This 1ms delay is too short for very slow environments (usually those |
| 263 | // running memory checkers). In those environments, the code takes >1ms to run |
| 264 | // and no delay is needed. Rather than increase the delay and slow down the |
| 265 | // test everywhere, the test doesn't explicitly verify that a delay has been |
| 266 | // applied. Instead it just verifies that the whole thing took >=1ms. 1ms is |
| 267 | // easily enough for normal compiles even on Android, so the fact that there |
| 268 | // is a delay is still checked on every platform. |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 269 | const base::TimeDelta unlock_delay = base::TimeDelta::FromMilliseconds(1); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 270 | websocket_endpoint_lock_manager_.SetUnlockDelayForTesting(unlock_delay); |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 271 | FakeWaiter fake_waiter; |
| 272 | BlockingWaiter blocking_waiter; |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 273 | EXPECT_THAT(websocket_endpoint_lock_manager_.LockEndpoint(DummyEndpoint(), |
| 274 | &fake_waiter), |
| 275 | IsOk()); |
| 276 | EXPECT_EQ(ERR_IO_PENDING, websocket_endpoint_lock_manager_.LockEndpoint( |
| 277 | DummyEndpoint(), &blocking_waiter)); |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 278 | |
| 279 | TimeTicks before_unlock = TimeTicks::Now(); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 280 | websocket_endpoint_lock_manager_.UnlockEndpoint(DummyEndpoint()); |
ricea | 6da0ff6 | 2015-01-27 08:15:19 | [diff] [blame] | 281 | blocking_waiter.WaitForLock(); |
| 282 | TimeTicks after_unlock = TimeTicks::Now(); |
| 283 | EXPECT_GE(after_unlock - before_unlock, unlock_delay); |
Bence Béky | da280c6 | 2018-04-12 15:08:37 | [diff] [blame] | 284 | websocket_endpoint_lock_manager_.SetUnlockDelayForTesting(base::TimeDelta()); |
ricea | bafe0f2 | 2015-01-23 05:31:25 | [diff] [blame] | 285 | UnlockDummyEndpoint(1); |
| 286 | } |
| 287 | |
[email protected] | 65486614 | 2014-06-24 22:53:31 | [diff] [blame] | 288 | } // namespace |
| 289 | |
| 290 | } // namespace net |