Searched refs:SocketStreamMetrics (Results 1 – 5 of 5) sorted by relevance
15 SocketStreamMetrics::SocketStreamMetrics(const GURL& url) in SocketStreamMetrics() function in net::SocketStreamMetrics29 SocketStreamMetrics::~SocketStreamMetrics() {} in ~SocketStreamMetrics()31 void SocketStreamMetrics::OnWaitConnection() { in OnWaitConnection()35 void SocketStreamMetrics::OnStartConnection() { in OnStartConnection()43 void SocketStreamMetrics::OnTunnelProxy() { in OnTunnelProxy()47 void SocketStreamMetrics::OnSOCKSProxy() { in OnSOCKSProxy()51 void SocketStreamMetrics::OnSSLConnection() { in OnSSLConnection()55 void SocketStreamMetrics::OnConnected() { in OnConnected()61 void SocketStreamMetrics::OnRead(int len) { in OnRead()66 void SocketStreamMetrics::OnWrite(int len) { in OnWrite()[all …]
36 SocketStreamMetrics unknown(GURL("unknown://www.example.com/")); in TEST()37 SocketStreamMetrics ws1(GURL("ws://www.example.com/")); in TEST()38 SocketStreamMetrics ws2(GURL("ws://www.example.com/")); in TEST()39 SocketStreamMetrics wss1(GURL("wss://www.example.com/")); in TEST()40 SocketStreamMetrics wss2(GURL("wss://www.example.com/")); in TEST()41 SocketStreamMetrics wss3(GURL("wss://www.example.com/")); in TEST()51 EXPECT_EQ(1, sample.counts(SocketStreamMetrics::PROTOCOL_UNKNOWN)); in TEST()52 EXPECT_EQ(2, sample.counts(SocketStreamMetrics::PROTOCOL_WEBSOCKET)); in TEST()53 EXPECT_EQ(3, sample.counts(SocketStreamMetrics::PROTOCOL_WEBSOCKET_SECURE)); in TEST()66 SocketStreamMetrics metrics(GURL("ws://www.example.com/")); in TEST()[all …]
20 class SocketStreamMetrics {22 explicit SocketStreamMetrics(const GURL& url);23 ~SocketStreamMetrics();62 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics);
36 class SocketStreamMetrics; variable318 scoped_ptr<SocketStreamMetrics> metrics_;
64 metrics_(new SocketStreamMetrics(url)), in SocketStream()