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

Unified Diff: net/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/quic/test_tools/quic_config_peer.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.h
diff --git a/net/quic/test_tools/quic_test_utils.h b/net/quic/test_tools/quic_test_utils.h
index 19e7d8095728b7995eae95b619bb0195fad6c4f5..76da41e14a2f992f46150f0f83803ab53a14bba2 100644
--- a/net/quic/test_tools/quic_test_utils.h
+++ b/net/quic/test_tools/quic_test_utils.h
@@ -214,6 +214,8 @@ class MockHelper : public QuicConnectionHelperInterface {
private:
MockClock clock_;
MockRandom random_generator_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockHelper);
};
class MockConnection : public QuicConnection {
@@ -338,6 +340,7 @@ class TestSession : public QuicSession {
private:
QuicCryptoStream* crypto_stream_;
+
DISALLOW_COPY_AND_ASSIGN(TestSession);
};
@@ -362,6 +365,7 @@ class TestClientSession : public QuicClientSessionBase {
private:
QuicCryptoStream* crypto_stream_;
+
DISALLOW_COPY_AND_ASSIGN(TestClientSession);
};
@@ -378,6 +382,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 MockSendAlgorithm : public SendAlgorithmInterface {
@@ -422,6 +429,9 @@ class MockLossAlgorithm : public LossDetectionInterface {
QuicPacketSequenceNumber largest_observed,
const RttStats& rtt_stats));
MOCK_CONST_METHOD0(GetLossTimeout, QuicTime());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockLossAlgorithm);
};
class TestEntropyCalculator :
@@ -432,6 +442,9 @@ class TestEntropyCalculator :
virtual QuicPacketEntropyHash EntropyHash(
QuicPacketSequenceNumber sequence_number) const OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestEntropyCalculator);
};
class MockEntropyCalculator : public TestEntropyCalculator {
@@ -442,6 +455,9 @@ class MockEntropyCalculator : public TestEntropyCalculator {
MOCK_CONST_METHOD1(
EntropyHash,
QuicPacketEntropyHash(QuicPacketSequenceNumber sequence_number));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockEntropyCalculator);
};
class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
@@ -457,6 +473,9 @@ class MockAckNotifierDelegate : public QuicAckNotifier::DelegateInterface {
protected:
// Object is ref counted.
virtual ~MockAckNotifierDelegate();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate);
};
} // namespace test
« no previous file with comments | « net/quic/test_tools/quic_config_peer.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698