| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "net/socket/websocket_endpoint_lock_manager.h" | 5 #include "net/socket/websocket_endpoint_lock_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 void ClearConnectionAttempts() override {} | 67 void ClearConnectionAttempts() override {} |
| 68 | 68 |
| 69 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 69 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 70 | 70 |
| 71 int64_t GetTotalReceivedBytes() const override { | 71 int64_t GetTotalReceivedBytes() const override { |
| 72 NOTIMPLEMENTED(); | 72 NOTIMPLEMENTED(); |
| 73 return 0; | 73 return 0; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void DumpMemoryStats( |
| 77 base::trace_event::MemoryAllocatorDump* dump) const override { |
| 78 NOTREACHED(); |
| 79 } |
| 80 |
| 76 // Socket implementation | 81 // Socket implementation |
| 77 int Read(IOBuffer* buf, | 82 int Read(IOBuffer* buf, |
| 78 int buf_len, | 83 int buf_len, |
| 79 const CompletionCallback& callback) override { | 84 const CompletionCallback& callback) override { |
| 80 return ERR_FAILED; | 85 return ERR_FAILED; |
| 81 } | 86 } |
| 82 | 87 |
| 83 int Write(IOBuffer* buf, | 88 int Write(IOBuffer* buf, |
| 84 int buf_len, | 89 int buf_len, |
| 85 const CompletionCallback& callback) override { | 90 const CompletionCallback& callback) override { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 blocking_waiter.WaitForLock(); | 336 blocking_waiter.WaitForLock(); |
| 332 TimeTicks after_unlock = TimeTicks::Now(); | 337 TimeTicks after_unlock = TimeTicks::Now(); |
| 333 EXPECT_GE(after_unlock - before_unlock, unlock_delay); | 338 EXPECT_GE(after_unlock - before_unlock, unlock_delay); |
| 334 instance()->SetUnlockDelayForTesting(base::TimeDelta()); | 339 instance()->SetUnlockDelayForTesting(base::TimeDelta()); |
| 335 UnlockDummyEndpoint(1); | 340 UnlockDummyEndpoint(1); |
| 336 } | 341 } |
| 337 | 342 |
| 338 } // namespace | 343 } // namespace |
| 339 | 344 |
| 340 } // namespace net | 345 } // namespace net |
| OLD | NEW |