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

Unified Diff: test/cctest/test-sockets.cc

Issue 27089: Fixed lint errors.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | « src/platform-win32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-sockets.cc
===================================================================
--- test/cctest/test-sockets.cc (revision 1350)
+++ test/cctest/test-sockets.cc (working copy)
@@ -13,9 +13,9 @@
class SocketListenerThread : public Thread {
public:
- SocketListenerThread(int data_size) : data_size_(data_size),
- server_(NULL), client_(NULL),
- listening_(OS::CreateSemaphore(0)) {
+ explicit SocketListenerThread(int data_size)
+ : data_size_(data_size), server_(NULL), client_(NULL),
+ listening_(OS::CreateSemaphore(0)) {
data_ = new char[data_size_];
}
~SocketListenerThread() {
@@ -50,7 +50,7 @@
ok = server_->Listen(1);
CHECK(ok);
listening_->Signal();
-
+
// Accept a connection.
client_ = server_->Accept();
CHECK(client_ != NULL);
@@ -70,7 +70,7 @@
SocketListenerThread* listener = new SocketListenerThread(len);
listener->Start();
listener->WaitForListening();
-
+
// Connect and write some data.
Socket* client = OS::CreateSocket();
CHECK(client != NULL);
« no previous file with comments | « src/platform-win32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698