| 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 "content/test/layout_browsertest.h" | 5 #include "content/test/layout_browsertest.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "content/browser/web_contents/web_contents_impl.h" | 19 #include "content/browser/web_contents/web_contents_impl.h" |
| 20 #include "content/public/common/content_paths.h" | 20 #include "content/public/common/content_paths.h" |
| 21 #include "content/public/test/browser_test_utils.h" | 21 #include "content/public/test/browser_test_utils.h" |
| 22 #include "content/shell/common/shell_switches.h" |
| 22 #include "content/shell/shell.h" | 23 #include "content/shell/shell.h" |
| 23 #include "content/shell/shell_switches.h" | |
| 24 #include "content/shell/webkit_test_controller.h" | 24 #include "content/shell/webkit_test_controller.h" |
| 25 #include "content/test/content_browser_test_utils.h" | 25 #include "content/test/content_browser_test_utils.h" |
| 26 #include "content/test/layout_test_http_server.h" | 26 #include "content/test/layout_test_http_server.h" |
| 27 #include "net/base/net_util.h" | 27 #include "net/base/net_util.h" |
| 28 | 28 |
| 29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 30 static const char kPlatformName[] = "chromium-win"; | 30 static const char kPlatformName[] = "chromium-win"; |
| 31 #elif defined(OS_MACOSX) | 31 #elif defined(OS_MACOSX) |
| 32 static const char kPlatformName[] = "chromium-mac"; | 32 static const char kPlatformName[] = "chromium-mac"; |
| 33 #elif defined(OS_LINUX) | 33 #elif defined(OS_LINUX) |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 expected.size())); | 205 expected.size())); |
| 206 EXPECT_NE(-1, file_util::WriteFile(actual_filename, | 206 EXPECT_NE(-1, file_util::WriteFile(actual_filename, |
| 207 actual.c_str(), | 207 actual.c_str(), |
| 208 actual.size())); | 208 actual.size())); |
| 209 return base::StringPrintf("Wrote %"PRFilePath" %"PRFilePath, | 209 return base::StringPrintf("Wrote %"PRFilePath" %"PRFilePath, |
| 210 expected_filename.value().c_str(), | 210 expected_filename.value().c_str(), |
| 211 actual_filename.value().c_str()); | 211 actual_filename.value().c_str()); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace content | 214 } // namespace content |
| OLD | NEW |