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

Unified Diff: net/socket/socket_test_util.h

Issue 10066045: RefCounted types should not have public destructors, net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: net/socket/socket_test_util.h
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 350e0b4439e2dc2c6c4e7d2689d6de2434b0db40..5ec195936eac1aea6c774c4978c1c9442e8ae4ee 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -433,14 +433,14 @@ class DeterministicMockTCPClientSocket;
//
// For examples of how to use this class, see:
// deterministic_socket_data_unittests.cc
-class DeterministicSocketData : public StaticSocketDataProvider,
- public base::RefCounted<DeterministicSocketData> {
+class DeterministicSocketData
+ : public StaticSocketDataProvider,
+ public base::RefCounted<DeterministicSocketData> {
public:
// |reads| the list of MockRead completions.
// |writes| the list of MockWrite completions.
DeterministicSocketData(MockRead* reads, size_t reads_count,
MockWrite* writes, size_t writes_count);
- virtual ~DeterministicSocketData();
// Consume all the data up to the give stop point (via SetStop()).
void Run();
@@ -476,6 +476,9 @@ class DeterministicSocketData : public StaticSocketDataProvider,
virtual void CompleteRead() OVERRIDE {}
private:
+ friend class base::RefCounted<DeterministicSocketData>;
+ virtual ~DeterministicSocketData();
+
// Invoke the read and write callbacks, if the timing is appropriate.
void InvokeCallbacks();

Powered by Google App Engine
This is Rietveld 408576698