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

Side by Side Diff: net/tools/flip_server/http_interface_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/http_interface.h" 5 #include "net/tools/flip_server/http_interface.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "net/tools/flip_server/balsa_enums.h" 12 #include "net/tools/balsa/balsa_enums.h"
13 #include "net/tools/flip_server/balsa_frame.h" 13 #include "net/tools/balsa/balsa_frame.h"
14 #include "net/tools/flip_server/balsa_headers.h" 14 #include "net/tools/balsa/balsa_headers.h"
15 #include "net/tools/flip_server/flip_config.h" 15 #include "net/tools/flip_server/flip_config.h"
16 #include "net/tools/flip_server/flip_test_utils.h" 16 #include "net/tools/flip_server/flip_test_utils.h"
17 #include "net/tools/flip_server/mem_cache.h" 17 #include "net/tools/flip_server/mem_cache.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 using ::base::StringPiece; 23 using ::base::StringPiece;
24 using ::testing::_; 24 using ::testing::_;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 478 }
479 interface_->SendEOF(32); 479 interface_->SendEOF(32);
480 ASSERT_EQ(1u, connection_->output_list()->size()); 480 ASSERT_EQ(1u, connection_->output_list()->size());
481 DataFrame* df = connection_->output_list()->front(); 481 DataFrame* df = connection_->output_list()->front();
482 ASSERT_EQ("0\r\n\r\n", StringPiece(df->data, df->size)); 482 ASSERT_EQ("0\r\n\r\n", StringPiece(df->data, df->size));
483 } 483 }
484 484
485 } // namespace 485 } // namespace
486 486
487 } // namespace net 487 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698