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/file_util.h" | 5 #include "base/files/file_util.h" |
6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
11 #include "content/public/browser/devtools_http_handler.h" | 11 #include "content/public/browser/devtools_http_handler.h" |
12 #include "content/public/browser/devtools_http_handler_delegate.h" | 12 #include "content/public/browser/devtools_http_handler_delegate.h" |
13 #include "content/public/browser/devtools_target.h" | 13 #include "content/public/browser/devtools_target.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 kDevToolsActivePortFileName); | 172 kDevToolsActivePortFileName); |
173 EXPECT_TRUE(base::PathExists(active_port_file)); | 173 EXPECT_TRUE(base::PathExists(active_port_file)); |
174 std::string file_contents; | 174 std::string file_contents; |
175 EXPECT_TRUE(base::ReadFileToString(active_port_file, &file_contents)); | 175 EXPECT_TRUE(base::ReadFileToString(active_port_file, &file_contents)); |
176 int port = 0; | 176 int port = 0; |
177 EXPECT_TRUE(base::StringToInt(file_contents, &port)); | 177 EXPECT_TRUE(base::StringToInt(file_contents, &port)); |
178 EXPECT_EQ(kDummyPort, port); | 178 EXPECT_EQ(kDummyPort, port); |
179 } | 179 } |
180 | 180 |
181 } // namespace content | 181 } // namespace content |
OLD | NEW |