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

Side by Side Diff: chrome/browser/devtools/device/port_forwarding_browsertest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/prefs/pref_service.h"
9 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
11 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
12 #include "chrome/browser/devtools/device/devtools_android_bridge.h" 11 #include "chrome/browser/devtools/device/devtools_android_bridge.h"
13 #include "chrome/browser/devtools/device/tcp_device_provider.h" 12 #include "chrome/browser/devtools/device/tcp_device_provider.h"
14 #include "chrome/browser/devtools/remote_debugging_server.h" 13 #include "chrome/browser/devtools/remote_debugging_server.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 16 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
20 #include "chrome/test/base/in_process_browser_test.h" 19 #include "chrome/test/base/in_process_browser_test.h"
21 #include "chrome/test/base/ui_test_utils.h" 20 #include "chrome/test/base/ui_test_utils.h"
21 #include "components/prefs/pref_service.h"
22 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
23 #include "content/public/common/content_switches.h" 23 #include "content/public/common/content_switches.h"
24 #include "content/public/test/browser_test_utils.h" 24 #include "content/public/test/browser_test_utils.h"
25 #include "content/public/test/test_utils.h" 25 #include "content/public/test/test_utils.h"
26 #include "net/test/embedded_test_server/embedded_test_server.h" 26 #include "net/test/embedded_test_server/embedded_test_server.h"
27 27
28 namespace { 28 namespace {
29 const char kPortForwardingTestPage[] = "/devtools/port_forwarding/main.html"; 29 const char kPortForwardingTestPage[] = "/devtools/port_forwarding/main.html";
30 30
31 const int kDefaultDebuggingPort = 9223; 31 const int kDefaultDebuggingPort = 9223;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 scoped_ptr<Listener> wait_for_port_forwarding(new Listener(profile)); 177 scoped_ptr<Listener> wait_for_port_forwarding(new Listener(profile));
178 content::RunMessageLoop(); 178 content::RunMessageLoop();
179 179
180 self_provider->set_release_callback_for_test( 180 self_provider->set_release_callback_for_test(
181 base::Bind(&base::MessageLoop::PostTask, 181 base::Bind(&base::MessageLoop::PostTask,
182 base::Unretained(base::MessageLoop::current()), FROM_HERE, 182 base::Unretained(base::MessageLoop::current()), FROM_HERE,
183 base::MessageLoop::QuitWhenIdleClosure())); 183 base::MessageLoop::QuitWhenIdleClosure()));
184 wait_for_port_forwarding.reset(); 184 wait_for_port_forwarding.reset();
185 content::RunMessageLoop(); 185 content::RunMessageLoop();
186 } 186 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/devtools_android_bridge.cc ('k') | chrome/browser/devtools/device/port_forwarding_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698