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

Unified Diff: net/http/http_status_code_unittest.cc

Issue 16622002: Generate constants for HTTP status codes and reason phrases using macro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtc's comments Created 7 years, 6 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/http/http_status_code_list.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_status_code_unittest.cc
diff --git a/net/http/http_status_code_unittest.cc b/net/http/http_status_code_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..526681da938ab771101f86b5b01e2bc3230d2038
--- /dev/null
+++ b/net/http/http_status_code_unittest.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/http/http_status_code.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace net {
+
+namespace {
+
+TEST(HttpStatusCode, OK) {
+ EXPECT_EQ(200, HTTP_OK);
+ EXPECT_STREQ("OK", GetHttpReasonPhrase(HTTP_OK));
+}
+
+} // namespace
+
+} // namespace net
« no previous file with comments | « net/http/http_status_code_list.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698