| 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 "media/cast/net/udp_transport.h" | 5 #include "media/cast/net/udp_transport.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "media/cast/net/cast_transport_config.h" | 16 #include "media/cast/net/cast_transport_config.h" |
| 16 #include "media/cast/test/utility/net_utility.h" | 17 #include "media/cast/test/utility/net_utility.h" |
| 17 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 20 |
| 20 namespace media { | 21 namespace media { |
| 21 namespace cast { | 22 namespace cast { |
| 22 | 23 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 send_transport.SendPacket(new base::RefCountedData<Packet>(packet), cb); | 93 send_transport.SendPacket(new base::RefCountedData<Packet>(packet), cb); |
| 93 run_loop.Run(); | 94 run_loop.Run(); |
| 94 EXPECT_TRUE( | 95 EXPECT_TRUE( |
| 95 std::equal(packet.begin(), packet.end(), receiver1.packet().begin())); | 96 std::equal(packet.begin(), packet.end(), receiver1.packet().begin())); |
| 96 EXPECT_TRUE( | 97 EXPECT_TRUE( |
| 97 std::equal(packet.begin(), packet.end(), receiver2.packet().begin())); | 98 std::equal(packet.begin(), packet.end(), receiver2.packet().begin())); |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace cast | 101 } // namespace cast |
| 101 } // namespace media | 102 } // namespace media |
| OLD | NEW |