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

Unified Diff: net/tools/quic/quic_in_memory_cache_test.cc

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/tools/quic/quic_in_memory_cache_test.cc
diff --git a/net/tools/quic/quic_in_memory_cache_test.cc b/net/tools/quic/quic_in_memory_cache_test.cc
index adcb59917c56850b7491879d3b042f12fa0ba84a..83dd694b98d0d0a743d227d01851ad09ba0598d1 100644
--- a/net/tools/quic/quic_in_memory_cache_test.cc
+++ b/net/tools/quic/quic_in_memory_cache_test.cc
@@ -26,8 +26,8 @@ class QuicInMemoryCacheTest : public ::testing::Test {
QuicInMemoryCacheTest() {
base::FilePath path;
PathService::Get(base::DIR_SOURCE_ROOT, &path);
- path = path.AppendASCII("net").AppendASCII("data")
- .AppendASCII("quic_in_memory_cache_data");
+ path = path.AppendASCII("net").AppendASCII("data").AppendASCII(
+ "quic_in_memory_cache_data");
// The file path is known to be an ascii string.
FLAGS_quic_in_memory_cache_dir = path.MaybeAsASCII();
}
@@ -39,9 +39,7 @@ class QuicInMemoryCacheTest : public ::testing::Test {
headers->ReplaceOrAppendHeader("host", host);
}
- virtual void SetUp() {
- QuicInMemoryCachePeer::ResetForTests();
- }
+ virtual void SetUp() { QuicInMemoryCachePeer::ResetForTests(); }
// This method was copied from end_to_end_test.cc in this directory.
void AddToCache(const StringPiece& method,
@@ -51,12 +49,9 @@ class QuicInMemoryCacheTest : public ::testing::Test {
const StringPiece& response_detail,
const StringPiece& body) {
BalsaHeaders request_headers, response_headers;
- request_headers.SetRequestFirstlineFromStringPieces(method,
- path,
- version);
- response_headers.SetRequestFirstlineFromStringPieces(version,
- response_code,
- response_detail);
+ request_headers.SetRequestFirstlineFromStringPieces(method, path, version);
+ response_headers.SetRequestFirstlineFromStringPieces(
+ version, response_code, response_detail);
response_headers.AppendHeader("content-length",
base::IntToString(body.length()));
@@ -78,8 +73,12 @@ class QuicInMemoryCacheTest : public ::testing::Test {
TEST_F(QuicInMemoryCacheTest, AddResponseGetResponse) {
std::string response_body("hello response");
- AddToCache("GET", "https://www.google.com/bar",
- "HTTP/1.1", "200", "OK", response_body);
+ AddToCache("GET",
+ "https://www.google.com/bar",
+ "HTTP/1.1",
+ "200",
+ "OK",
+ response_body);
net::BalsaHeaders request_headers;
CreateRequest("www.google.com", "/bar", &request_headers);
QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance();

Powered by Google App Engine
This is Rietveld 408576698