| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 5 #include <utility> | 8 #include <utility> |
| 6 | 9 |
| 7 #include "base/macros.h" | 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 10 #include "mojo/application/public/cpp/application_connection.h" | 13 #include "mojo/application/public/cpp/application_connection.h" |
| 11 #include "mojo/application/public/cpp/application_impl.h" | 14 #include "mojo/application/public/cpp/application_impl.h" |
| 12 #include "mojo/application/public/cpp/application_test_base.h" | 15 #include "mojo/application/public/cpp/application_test_base.h" |
| 13 #include "mojo/public/cpp/bindings/callback.h" | 16 #include "mojo/public/cpp/bindings/callback.h" |
| 14 #include "mojo/services/network/public/cpp/udp_socket_wrapper.h" | 17 #include "mojo/services/network/public/cpp/udp_socket_wrapper.h" |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 receive_callbacks[j].result()->code); | 645 receive_callbacks[j].result()->code); |
| 643 EXPECT_FALSE(receive_callbacks[j].src_addr()); | 646 EXPECT_FALSE(receive_callbacks[j].src_addr()); |
| 644 EXPECT_TRUE(receive_callbacks[j].data().Equals( | 647 EXPECT_TRUE(receive_callbacks[j].data().Equals( |
| 645 CreateTestMessage(static_cast<uint8_t>(j), kDatagramSize))); | 648 CreateTestMessage(static_cast<uint8_t>(j), kDatagramSize))); |
| 646 } | 649 } |
| 647 } | 650 } |
| 648 } | 651 } |
| 649 | 652 |
| 650 } // namespace service | 653 } // namespace service |
| 651 } // namespace mojo | 654 } // namespace mojo |
| OLD | NEW |