| OLD | NEW |
| 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 "chrome/browser/devtools/device/adb/mock_adb_server.h" | 5 #include "chrome/browser/devtools/device/adb/mock_adb_server.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/thread_task_runner_handle.h" | |
| 20 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "content/public/test/browser_test.h" | 22 #include "content/public/test/browser_test.h" |
| 23 #include "content/public/test/test_utils.h" | 23 #include "content/public/test/test_utils.h" |
| 24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
| 25 #include "net/base/ip_address.h" | 25 #include "net/base/ip_address.h" |
| 26 #include "net/base/ip_endpoint.h" | 26 #include "net/base/ip_endpoint.h" |
| 27 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
| 28 #include "net/socket/stream_socket.h" | 28 #include "net/socket/stream_socket.h" |
| 29 #include "net/socket/tcp_server_socket.h" | 29 #include "net/socket/tcp_server_socket.h" |
| 30 | 30 |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 content::RunMessageLoop(); | 611 content::RunMessageLoop(); |
| 612 } | 612 } |
| 613 | 613 |
| 614 void StopMockAdbServer() { | 614 void StopMockAdbServer() { |
| 615 BrowserThread::PostTaskAndReply(BrowserThread::IO, FROM_HERE, | 615 BrowserThread::PostTaskAndReply(BrowserThread::IO, FROM_HERE, |
| 616 base::Bind(&StopMockAdbServerOnIOThread), | 616 base::Bind(&StopMockAdbServerOnIOThread), |
| 617 base::MessageLoop::QuitWhenIdleClosure()); | 617 base::MessageLoop::QuitWhenIdleClosure()); |
| 618 content::RunMessageLoop(); | 618 content::RunMessageLoop(); |
| 619 } | 619 } |
| 620 | 620 |
| OLD | NEW |