summaryrefslogtreecommitdiffstats
path: root/net/socket/socket_test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/socket_test_util.h')
-rw-r--r--net/socket/socket_test_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 324b70a..a4973d8 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -300,19 +300,20 @@ class TestSocketRequest : public CallbackRunner< Tuple1<int> > {
ClientSocketPool* pool,
std::vector<TestSocketRequest*>* request_order,
size_t* completion_count)
- : handle(pool),
+ : handle_(pool),
request_order_(request_order),
completion_count_(completion_count) {
DCHECK(request_order);
DCHECK(completion_count);
}
- ClientSocketHandle handle;
+ ClientSocketHandle* handle() { return &handle_; }
int WaitForResult();
virtual void RunWithParams(const Tuple1<int>& params);
private:
+ ClientSocketHandle handle_;
std::vector<TestSocketRequest*>* request_order_;
size_t* completion_count_;
TestCompletionCallback callback_;