| Index: content/browser/renderer_host/p2p/socket_host_test_utils.h
|
| ===================================================================
|
| --- content/browser/renderer_host/p2p/socket_host_test_utils.h (revision 90551)
|
| +++ content/browser/renderer_host/p2p/socket_host_test_utils.h (working copy)
|
| @@ -73,6 +73,8 @@
|
| virtual void SetOmniboxSpeculation() OVERRIDE;
|
| virtual bool WasEverUsed() const OVERRIDE;
|
| virtual bool UsingTCPFastOpen() const OVERRIDE;
|
| + virtual int64 NumBytesRead() const OVERRIDE;
|
| + virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
|
|
|
| private:
|
| bool read_pending_;
|
| @@ -209,6 +211,14 @@
|
| return false;
|
| }
|
|
|
| +int64 FakeSocket::NumBytesRead() const {
|
| + return -1;
|
| +}
|
| +
|
| +base::TimeDelta FakeSocket::GetConnectTimeMicros() const {
|
| + return base::TimeDelta::FromMicroseconds(-1);
|
| +}
|
| +
|
| void CreateRandomPacket(std::vector<char>* packet) {
|
| size_t size = kStunHeaderSize + rand() % 1000;
|
| packet->resize(size);
|
|
|