summaryrefslogtreecommitdiffstats
path: root/net/websockets
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 06:26:09 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 06:26:09 +0000
commit3480e6ac6ab2ffc088eda4e0253ebeca067c4174 (patch)
tree1c7590ecd0491fa9034f5a61106387ef11876aad /net/websockets
parent8f0522a40ebd709d7b95190694ebe19fcf9f28f9 (diff)
downloadchromium_src-3480e6ac6ab2ffc088eda4e0253ebeca067c4174.zip
chromium_src-3480e6ac6ab2ffc088eda4e0253ebeca067c4174.tar.gz
chromium_src-3480e6ac6ab2ffc088eda4e0253ebeca067c4174.tar.bz2
Header file which defines unit test's target class should be included at first.
BUG=87363 TEST=net_unittests Review URL: http://codereview.chromium.org/7201024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets')
-rw-r--r--net/websockets/websocket_frame_handler_unittest.cc3
-rw-r--r--net/websockets/websocket_handshake_draft75_unittest.cc3
-rw-r--r--net/websockets/websocket_handshake_handler_unittest.cc3
-rw-r--r--net/websockets/websocket_handshake_unittest.cc3
-rw-r--r--net/websockets/websocket_job_unittest.cc3
-rw-r--r--net/websockets/websocket_net_log_params_unittest.cc3
-rw-r--r--net/websockets/websocket_throttle_unittest.cc3
-rw-r--r--net/websockets/websocket_unittest.cc3
8 files changed, 16 insertions, 8 deletions
diff --git a/net/websockets/websocket_frame_handler_unittest.cc b/net/websockets/websocket_frame_handler_unittest.cc
index 9dad139..d73d5e5 100644
--- a/net/websockets/websocket_frame_handler_unittest.cc
+++ b/net/websockets/websocket_frame_handler_unittest.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_frame_handler.h"
+
#include "base/memory/scoped_ptr.h"
#include "net/base/io_buffer.h"
-#include "net/websockets/websocket_frame_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/net/websockets/websocket_handshake_draft75_unittest.cc b/net/websockets/websocket_handshake_draft75_unittest.cc
index f509f55..4f5db31 100644
--- a/net/websockets/websocket_handshake_draft75_unittest.cc
+++ b/net/websockets/websocket_handshake_draft75_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_handshake_draft75.h"
+
#include <string>
#include <vector>
#include "base/memory/scoped_ptr.h"
-#include "net/websockets/websocket_handshake_draft75.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/platform_test.h"
diff --git a/net/websockets/websocket_handshake_handler_unittest.cc b/net/websockets/websocket_handshake_handler_unittest.cc
index 50199d9..0068063b 100644
--- a/net/websockets/websocket_handshake_handler_unittest.cc
+++ b/net/websockets/websocket_handshake_handler_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_handshake_handler.h"
+
#include <string>
#include <vector>
@@ -10,7 +12,6 @@
#include "googleurl/src/gurl.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
-#include "net/websockets/websocket_handshake_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/net/websockets/websocket_handshake_unittest.cc b/net/websockets/websocket_handshake_unittest.cc
index eb3ada8..61290b2 100644
--- a/net/websockets/websocket_handshake_unittest.cc
+++ b/net/websockets/websocket_handshake_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_handshake.h"
+
#include <string>
#include <vector>
@@ -9,7 +11,6 @@
#include "base/string_split.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
-#include "net/websockets/websocket_handshake.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
diff --git a/net/websockets/websocket_job_unittest.cc b/net/websockets/websocket_job_unittest.cc
index b19fb37..a72c6baf 100644
--- a/net/websockets/websocket_job_unittest.cc
+++ b/net/websockets/websocket_job_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_job.h"
+
#include <string>
#include <vector>
@@ -15,7 +17,6 @@
#include "net/base/transport_security_state.h"
#include "net/socket_stream/socket_stream.h"
#include "net/url_request/url_request_context.h"
-#include "net/websockets/websocket_job.h"
#include "net/websockets/websocket_throttle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gmock/include/gmock/gmock.h"
diff --git a/net/websockets/websocket_net_log_params_unittest.cc b/net/websockets/websocket_net_log_params_unittest.cc
index f3a5751..f624442 100644
--- a/net/websockets/websocket_net_log_params_unittest.cc
+++ b/net/websockets/websocket_net_log_params_unittest.cc
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_net_log_params.h"
+
#include <string>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "net/websockets/websocket_net_log_params.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(NetLogWebSocketHandshakeParameterTest, ToValue) {
diff --git a/net/websockets/websocket_throttle_unittest.cc b/net/websockets/websocket_throttle_unittest.cc
index e89b2c1..c1c8480 100644
--- a/net/websockets/websocket_throttle_unittest.cc
+++ b/net/websockets/websocket_throttle_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket_throttle.h"
+
#include <string>
#include "base/message_loop.h"
@@ -12,7 +14,6 @@
#include "net/socket_stream/socket_stream.h"
#include "net/url_request/url_request_test_util.h"
#include "net/websockets/websocket_job.h"
-#include "net/websockets/websocket_throttle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
diff --git a/net/websockets/websocket_unittest.cc b/net/websockets/websocket_unittest.cc
index cd6d42e..8a492e7 100644
--- a/net/websockets/websocket_unittest.cc
+++ b/net/websockets/websocket_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/websockets/websocket.h"
+
#include <string>
#include <vector>
@@ -14,7 +16,6 @@
#include "net/base/test_completion_callback.h"
#include "net/socket/socket_test_util.h"
#include "net/url_request/url_request_test_util.h"
-#include "net/websockets/websocket.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/platform_test.h"