OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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" | |
7 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/extensions/application_launch.h" | 10 #include "chrome/browser/ui/extensions/application_launch.h" |
12 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
16 #include "extensions/browser/api/dns/host_resolver_wrapper.h" | 15 #include "extensions/browser/api/dns/host_resolver_wrapper.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 extensions::ResultCatcher catcher; | 95 extensions::ResultCatcher catcher; |
97 catcher.RestrictToBrowserContext(browser()->profile()); | 96 catcher.RestrictToBrowserContext(browser()->profile()); |
98 ExtensionTestMessageListener listener("info_please", true); | 97 ExtensionTestMessageListener listener("info_please", true); |
99 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("sockets_udp/api"))); | 98 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("sockets_udp/api"))); |
100 EXPECT_TRUE(listener.WaitUntilSatisfied()); | 99 EXPECT_TRUE(listener.WaitUntilSatisfied()); |
101 listener.Reply( | 100 listener.Reply( |
102 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort)); | 101 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort)); |
103 | 102 |
104 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 103 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
105 } | 104 } |
OLD | NEW |