summaryrefslogtreecommitdiffstats
path: root/net/socket/socket_test_util.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 16:57:03 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 16:57:03 +0000
commit8e38341c65360b48c32b88c58d6ac490516c0c0c (patch)
tree381bfdd42b59c1c4fa2368dec5ed479d83ab6f16 /net/socket/socket_test_util.cc
parent0b97feeb41cb115158741daa975ec95d2e10cace (diff)
downloadchromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.zip
chromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.tar.gz
chromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.tar.bz2
FBTF: Even more ctor/virtual deinlining.
(Only 424k off Linux debug .a files). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3859003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socket_test_util.cc')
-rw-r--r--net/socket/socket_test_util.cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index 72126f1..9854cc5 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -543,6 +543,29 @@ bool MockSSLClientSocket::set_was_npn_negotiated(bool negotiated) {
return new_npn_value_ = negotiated;
}
+StaticSocketDataProvider::StaticSocketDataProvider()
+ : reads_(NULL),
+ read_index_(0),
+ read_count_(0),
+ writes_(NULL),
+ write_index_(0),
+ write_count_(0) {
+}
+
+StaticSocketDataProvider::StaticSocketDataProvider(MockRead* reads,
+ size_t reads_count,
+ MockWrite* writes,
+ size_t writes_count)
+ : reads_(reads),
+ read_index_(0),
+ read_count_(reads_count),
+ writes_(writes),
+ write_index_(0),
+ write_count_(writes_count) {
+}
+
+StaticSocketDataProvider::~StaticSocketDataProvider() {}
+
MockRead StaticSocketDataProvider::GetNextRead() {
DCHECK(!at_read_eof());
reads_[read_index_].time_stamp = base::Time::Now();
@@ -611,6 +634,8 @@ DynamicSocketDataProvider::DynamicSocketDataProvider()
allow_unconsumed_reads_(false) {
}
+DynamicSocketDataProvider::~DynamicSocketDataProvider() {}
+
MockRead DynamicSocketDataProvider::GetNextRead() {
if (reads_.empty())
return MockRead(false, ERR_UNEXPECTED);
@@ -786,6 +811,8 @@ void OrderedSocketData::CompleteRead() {
}
}
+OrderedSocketData::~OrderedSocketData() {}
+
DeterministicSocketData::DeterministicSocketData(MockRead* reads,
size_t reads_count, MockWrite* writes, size_t writes_count)
: StaticSocketDataProvider(reads, reads_count, writes, writes_count),
@@ -936,6 +963,10 @@ void DeterministicSocketData::NextStep() {
}
+MockClientSocketFactory::MockClientSocketFactory() {}
+
+MockClientSocketFactory::~MockClientSocketFactory() {}
+
void MockClientSocketFactory::AddSocketDataProvider(
SocketDataProvider* data) {
mock_data_.Add(data);
@@ -987,6 +1018,10 @@ SSLClientSocket* MockClientSocketFactory::CreateSSLClientSocket(
return socket;
}
+DeterministicMockClientSocketFactory::DeterministicMockClientSocketFactory() {}
+
+DeterministicMockClientSocketFactory::~DeterministicMockClientSocketFactory() {}
+
void DeterministicMockClientSocketFactory::AddSocketDataProvider(
DeterministicSocketData* data) {
mock_data_.Add(data);
@@ -1107,6 +1142,8 @@ MockTCPClientSocketPool::MockConnectJob::MockConnectJob(
connect_callback_(this, &MockConnectJob::OnConnect)) {
}
+MockTCPClientSocketPool::MockConnectJob::~MockConnectJob() {}
+
int MockTCPClientSocketPool::MockConnectJob::Connect() {
int rv = socket_->Connect(&connect_callback_);
if (rv == OK) {