Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: chrome/browser/extensions/api/socket/socket_apitest.cc

Issue 687903003: Cleanup: Remove unneeded ui_test_utils.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/ui_test_utils.h"
13 #include "extensions/browser/api/dns/host_resolver_wrapper.h" 12 #include "extensions/browser/api/dns/host_resolver_wrapper.h"
14 #include "extensions/browser/api/dns/mock_host_resolver_creator.h" 13 #include "extensions/browser/api/dns/mock_host_resolver_creator.h"
15 #include "extensions/browser/api/socket/socket_api.h" 14 #include "extensions/browser/api/socket/socket_api.h"
16 #include "extensions/test/extension_test_message_listener.h" 15 #include "extensions/test/extension_test_message_listener.h"
17 #include "extensions/test/result_catcher.h" 16 #include "extensions/test/result_catcher.h"
18 #include "net/dns/mock_host_resolver.h" 17 #include "net/dns/mock_host_resolver.h"
19 #include "net/test/spawned_test_server/spawned_test_server.h" 18 #include "net/test/spawned_test_server/spawned_test_server.h"
20 19
21 using extensions::Extension; 20 using extensions::Extension;
22 using extensions::ResultCatcher; 21 using extensions::ResultCatcher;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ResultCatcher catcher; 140 ResultCatcher catcher;
142 catcher.RestrictToBrowserContext(browser()->profile()); 141 catcher.RestrictToBrowserContext(browser()->profile());
143 ExtensionTestMessageListener listener("info_please", true); 142 ExtensionTestMessageListener listener("info_please", true);
144 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("socket/api"))); 143 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("socket/api")));
145 EXPECT_TRUE(listener.WaitUntilSatisfied()); 144 EXPECT_TRUE(listener.WaitUntilSatisfied());
146 listener.Reply( 145 listener.Reply(
147 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort)); 146 base::StringPrintf("multicast:%s:%d", kHostname.c_str(), kPort));
148 147
149 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); 148 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
150 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698