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

Side by Side Diff: net/tools/flip_server/mem_cache_test.cc

Issue 25085002: Break out balsa and epoll_server from net/tools/flip_server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/flip_server/mem_cache.h" 5 #include "net/tools/flip_server/mem_cache.h"
6 6
7 #include "net/tools/flip_server/balsa_headers.h" 7 #include "net/tools/balsa/balsa_headers.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 namespace { 12 namespace {
13 13
14 class MemoryCacheWithFakeReadToString : public MemoryCache { 14 class MemoryCacheWithFakeReadToString : public MemoryCache {
15 public: 15 public:
16 virtual ~MemoryCacheWithFakeReadToString() {} 16 virtual ~MemoryCacheWithFakeReadToString() {}
17 17
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 mem_cache_->ReadAndStoreFileContents("./hello.http"); 90 mem_cache_->ReadAndStoreFileContents("./hello.http");
91 hello_html = mem_cache_->GetFileData("hello.html"); 91 hello_html = mem_cache_->GetFileData("hello.html");
92 ASSERT_FALSE(NULL == hello_html); 92 ASSERT_FALSE(NULL == hello_html);
93 ASSERT_EQ(hello_html, mem_cache_->GetFileData("hello.http")); 93 ASSERT_EQ(hello_html, mem_cache_->GetFileData("hello.http"));
94 } 94 }
95 95
96 } // namespace 96 } // namespace
97 97
98 } // namespace net 98 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698