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

Unified Diff: net/socket/tcp_listen_socket_unittest.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/tcp_listen_socket_unittest.h
diff --git a/net/socket/tcp_listen_socket_unittest.h b/net/socket/tcp_listen_socket_unittest.h
index 1bc31a8d1ce0c8b501633ad8b4c4c5f56e390dd9..ce440fe442224b927c78699db176bc8a2a28f33e 100644
--- a/net/socket/tcp_listen_socket_unittest.h
+++ b/net/socket/tcp_listen_socket_unittest.h
@@ -45,8 +45,7 @@ class TCPListenSocketTestAction {
TCPListenSocketTestAction() : action_(ACTION_NONE) {}
explicit TCPListenSocketTestAction(ActionType action) : action_(action) {}
TCPListenSocketTestAction(ActionType action, std::string data)
- : action_(action),
- data_(data) {}
+ : action_(action), data_(data) {}
const std::string data() const { return data_; }
ActionType type() const { return action_; }
@@ -56,13 +55,11 @@ class TCPListenSocketTestAction {
std::string data_;
};
-
// This had to be split out into a separate class because I couldn't
// make the testing::Test class refcounted.
-class TCPListenSocketTester :
- public StreamListenSocket::Delegate,
- public base::RefCountedThreadSafe<TCPListenSocketTester> {
-
+class TCPListenSocketTester
+ : public StreamListenSocket::Delegate,
+ public base::RefCountedThreadSafe<TCPListenSocketTester> {
public:
TCPListenSocketTester();
@@ -92,7 +89,8 @@ class TCPListenSocketTester :
// StreamListenSocket::Delegate:
virtual void DidAccept(StreamListenSocket* server,
scoped_ptr<StreamListenSocket> connection) OVERRIDE;
- virtual void DidRead(StreamListenSocket* connection, const char* data,
+ virtual void DidRead(StreamListenSocket* connection,
+ const char* data,
int len) OVERRIDE;
virtual void DidClose(StreamListenSocket* sock) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698