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

Side by Side Diff: mojo/services/network/http_server_apptest.cc

Issue 1396423002: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/services/network/http_connection_impl.cc ('k') | mojo/services/network/http_server_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/memory/linked_ptr.h" 7 #include "base/memory/linked_ptr.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "mojo/common/data_pipe_utils.h" 13 #include "mojo/common/data_pipe_utils.h"
14 #include "mojo/services/network/interfaces/http_connection.mojom.h"
15 #include "mojo/services/network/interfaces/http_message.mojom.h"
16 #include "mojo/services/network/interfaces/http_server.mojom.h"
17 #include "mojo/services/network/interfaces/net_address.mojom.h"
18 #include "mojo/services/network/interfaces/network_service.mojom.h"
19 #include "mojo/services/network/interfaces/web_socket.mojom.h"
14 #include "mojo/services/network/net_address_type_converters.h" 20 #include "mojo/services/network/net_address_type_converters.h"
15 #include "mojo/services/network/public/cpp/web_socket_read_queue.h" 21 #include "mojo/services/network/web_socket_read_queue.h"
16 #include "mojo/services/network/public/cpp/web_socket_write_queue.h" 22 #include "mojo/services/network/web_socket_write_queue.h"
17 #include "mojo/services/network/public/interfaces/http_connection.mojom.h"
18 #include "mojo/services/network/public/interfaces/http_message.mojom.h"
19 #include "mojo/services/network/public/interfaces/http_server.mojom.h"
20 #include "mojo/services/network/public/interfaces/net_address.mojom.h"
21 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
22 #include "mojo/services/network/public/interfaces/web_socket.mojom.h"
23 #include "net/base/io_buffer.h" 23 #include "net/base/io_buffer.h"
24 #include "net/base/net_errors.h" 24 #include "net/base/net_errors.h"
25 #include "net/base/test_completion_callback.h" 25 #include "net/base/test_completion_callback.h"
26 #include "net/http/http_response_headers.h" 26 #include "net/http/http_response_headers.h"
27 #include "net/http/http_util.h" 27 #include "net/http/http_util.h"
28 #include "net/socket/tcp_client_socket.h" 28 #include "net/socket/tcp_client_socket.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h" 30 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h"
31 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" 31 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h"
32 #include "third_party/mojo/src/mojo/public/cpp/application/application_test_base .h" 32 #include "third_party/mojo/src/mojo/public/cpp/application/application_test_base .h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 680
681 socket_1.Send("How do"); 681 socket_1.Send("How do");
682 socket_1.Send("you do?"); 682 socket_1.Send("you do?");
683 683
684 socket_0.WaitForMessage(2); 684 socket_0.WaitForMessage(2);
685 EXPECT_EQ("How do", socket_0.received_messages()[0]); 685 EXPECT_EQ("How do", socket_0.received_messages()[0]);
686 EXPECT_EQ("you do?", socket_0.received_messages()[1]); 686 EXPECT_EQ("you do?", socket_0.received_messages()[1]);
687 } 687 }
688 688
689 } // namespace mojo 689 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/http_connection_impl.cc ('k') | mojo/services/network/http_server_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698