Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Unified Diff: net/tools/quic/test_tools/quic_test_utils.h

Issue 242643009: Added DISALLOW_COPY_AND_ASSIGN to disable copy/assign. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with TOT and internal CL: 65311983 Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_utils.h
diff --git a/net/tools/quic/test_tools/quic_test_utils.h b/net/tools/quic/test_tools/quic_test_utils.h
index 2e8a5e30bdcc4862404712d120e866ecde6b46a1..8eb0a57e4810bcdfcbb9a28780ce0ae891d309f2 100644
--- a/net/tools/quic/test_tools/quic_test_utils.h
+++ b/net/tools/quic/test_tools/quic_test_utils.h
@@ -44,6 +44,8 @@ class SimpleRandom {
private:
uint64 seed_;
+
+ DISALLOW_COPY_AND_ASSIGN(SimpleRandom);
};
class MockConnection : public QuicConnection {
@@ -116,6 +118,7 @@ class TestSession : public QuicSession {
private:
QuicCryptoStream* crypto_stream_;
+
DISALLOW_COPY_AND_ASSIGN(TestSession);
};
@@ -132,6 +135,9 @@ class MockPacketWriter : public QuicPacketWriter {
MOCK_CONST_METHOD0(IsWriteBlockedDataBuffered, bool());
MOCK_CONST_METHOD0(IsWriteBlocked, bool());
MOCK_METHOD0(SetWritable, void());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockPacketWriter);
};
class MockQuicServerSessionVisitor : public QuicServerSessionVisitor {
@@ -141,6 +147,9 @@ class MockQuicServerSessionVisitor : public QuicServerSessionVisitor {
MOCK_METHOD2(OnConnectionClosed, void(QuicConnectionId connection_id,
QuicErrorCode error));
MOCK_METHOD1(OnWriteBlocked, void(QuicBlockedWriterInterface* writer));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockQuicServerSessionVisitor);
};
class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
@@ -156,6 +165,8 @@ class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
protected:
// Object is ref counted.
virtual ~MockAckNotifierDelegate();
+
+ DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate);
};
} // namespace test
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698