Home
last modified time | relevance | path

Searched refs:SocketStreamMetrics (Results 1 – 5 of 5) sorted by relevance

/external/chromium/net/socket_stream/
Dsocket_stream_metrics.cc15 SocketStreamMetrics::SocketStreamMetrics(const GURL& url) in SocketStreamMetrics() function in net::SocketStreamMetrics
29 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 …]
Dsocket_stream_metrics_unittest.cc36 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 …]
Dsocket_stream_metrics.h20 class SocketStreamMetrics {
22 explicit SocketStreamMetrics(const GURL& url);
23 ~SocketStreamMetrics();
62 DISALLOW_COPY_AND_ASSIGN(SocketStreamMetrics);
Dsocket_stream.h36 class SocketStreamMetrics; variable
318 scoped_ptr<SocketStreamMetrics> metrics_;
Dsocket_stream.cc64 metrics_(new SocketStreamMetrics(url)), in SocketStream()