OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/socket/udp_socket.h" | 5 #include "extensions/browser/api/socket/udp_socket.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
12 #include "chrome/test/base/browser_with_test_window_test.h" | 12 #include "chrome/test/base/browser_with_test_window_test.h" |
13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 io_loop.PostDelayedTask(FROM_HERE, | 129 io_loop.PostDelayedTask(FROM_HERE, |
130 base::Bind(&QuitMessageLoop), | 130 base::Bind(&QuitMessageLoop), |
131 TestTimeouts::action_timeout()); | 131 TestTimeouts::action_timeout()); |
132 | 132 |
133 io_loop.Run(); | 133 io_loop.Run(); |
134 | 134 |
135 EXPECT_TRUE(packet_received) << "Failed to receive from multicast address"; | 135 EXPECT_TRUE(packet_received) << "Failed to receive from multicast address"; |
136 } | 136 } |
137 | 137 |
138 } // namespace extensions | 138 } // namespace extensions |
OLD | NEW |