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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" | 8 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" |
9 #include "chrome/browser/extensions/api/dns/mock_host_resolver_creator.h" | 9 #include "chrome/browser/extensions/api/dns/mock_host_resolver_creator.h" |
10 #include "chrome/browser/extensions/api/socket/socket_api.h" | 10 #include "chrome/browser/extensions/api/socket/socket_api.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 LaunchTestingApp(); | 319 LaunchTestingApp(); |
320 | 320 |
321 EXPECT_TRUE(listener.WaitUntilSatisfied()); | 321 EXPECT_TRUE(listener.WaitUntilSatisfied()); |
322 listener.Reply( | 322 listener.Reply( |
323 base::StringPrintf("tcp_server:%s:%d", kHostname.c_str(), kPort)); | 323 base::StringPrintf("tcp_server:%s:%d", kHostname.c_str(), kPort)); |
324 | 324 |
325 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 325 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
326 } | 326 } |
327 | 327 |
328 IN_PROC_BROWSER_TEST_F(SocketPpapiTest, MAYBE(Multicast)) { | 328 // Disabled due to flakiness: http://crbug.com/314899 |
| 329 IN_PROC_BROWSER_TEST_F(SocketPpapiTest, DISABLED_Multicast) { |
329 ResultCatcher catcher; | 330 ResultCatcher catcher; |
330 catcher.RestrictToProfile(browser()->profile()); | 331 catcher.RestrictToProfile(browser()->profile()); |
331 ExtensionTestMessageListener listener("info_please", true); | 332 ExtensionTestMessageListener listener("info_please", true); |
332 | 333 |
333 LaunchTestingApp(); | 334 LaunchTestingApp(); |
334 | 335 |
335 EXPECT_TRUE(listener.WaitUntilSatisfied()); | 336 EXPECT_TRUE(listener.WaitUntilSatisfied()); |
336 listener.Reply( | 337 listener.Reply( |
337 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort)); | 338 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort)); |
338 | 339 |
339 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 340 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
340 } | 341 } |
341 #endif | 342 #endif |
OLD | NEW |