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

Unified Diff: net/tools/flip_server/mem_cache_test.cc

Issue 93793004: Format and Refactor Flip Server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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/tools/flip_server/mem_cache.cc ('k') | net/tools/flip_server/output_ordering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/mem_cache_test.cc
diff --git a/net/tools/flip_server/mem_cache_test.cc b/net/tools/flip_server/mem_cache_test.cc
index 59bc485bc67707e8e946aa9bac1fc057dcdf2deb..5e45bb53ec74c37cb3b81ca9bd426c33cdbca61a 100644
--- a/net/tools/flip_server/mem_cache_test.cc
+++ b/net/tools/flip_server/mem_cache_test.cc
@@ -15,8 +15,8 @@ class MemoryCacheWithFakeReadToString : public MemoryCache {
public:
virtual ~MemoryCacheWithFakeReadToString() {}
- virtual void ReadToString(const char* filename, std::string* output)
- OVERRIDE {
+ virtual void ReadToString(const char* filename,
+ std::string* output) OVERRIDE {
*output = data_map_[filename];
}
@@ -25,7 +25,7 @@ class MemoryCacheWithFakeReadToString : public MemoryCache {
class FlipMemoryCacheTest : public ::testing::Test {
public:
- FlipMemoryCacheTest(): mem_cache_(new MemoryCacheWithFakeReadToString) {}
+ FlipMemoryCacheTest() : mem_cache_(new MemoryCacheWithFakeReadToString) {}
protected:
scoped_ptr<MemoryCacheWithFakeReadToString> mem_cache_;
@@ -44,7 +44,8 @@ TEST_F(FlipMemoryCacheTest, ReadAndStoreFileContents) {
FileData* hello;
mem_cache_->data_map_["./foo"] = "bar";
- mem_cache_->data_map_["./hello"] = "HTTP/1.0 200 OK\r\n"
+ mem_cache_->data_map_["./hello"] =
+ "HTTP/1.0 200 OK\r\n"
"key1: value1\r\n"
"key2: value2\r\n\r\n"
"body: body\r\n";
@@ -63,8 +64,9 @@ TEST_F(FlipMemoryCacheTest, ReadAndStoreFileContents) {
ASSERT_EQ("HTTP/1.1", hello->headers()->response_version());
ASSERT_EQ("200", hello->headers()->response_code());
ASSERT_EQ("OK", hello->headers()->response_reason_phrase());
- ASSERT_EQ(4, std::distance(hello->headers()->header_lines_begin(),
- hello->headers()->header_lines_end()));
+ ASSERT_EQ(4,
+ std::distance(hello->headers()->header_lines_begin(),
+ hello->headers()->header_lines_end()));
ASSERT_TRUE(hello->headers()->HasHeader("key1"));
ASSERT_TRUE(hello->headers()->HasHeader("key2"));
ASSERT_TRUE(hello->headers()->HasHeader("transfer-encoding"));
@@ -82,7 +84,8 @@ TEST_F(FlipMemoryCacheTest, ReadAndStoreFileContents) {
TEST_F(FlipMemoryCacheTest, GetFileDataForHtmlFile) {
FileData* hello_html;
- mem_cache_->data_map_["./hello.http"] = "HTTP/1.0 200 OK\r\n"
+ mem_cache_->data_map_["./hello.http"] =
+ "HTTP/1.0 200 OK\r\n"
"key1: value1\r\n"
"key2: value2\r\n\r\n"
"body: body\r\n";
« no previous file with comments | « net/tools/flip_server/mem_cache.cc ('k') | net/tools/flip_server/output_ordering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698