| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/ui/ui_layout_test.h" | 5 #include "chrome/test/ui/ui_layout_test.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/test/test_file_util.h" | 10 #include "base/test/test_file_util.h" |
| 11 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/test/automation/tab_proxy.h" | 14 #include "chrome/test/automation/tab_proxy.h" |
| 14 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
| 15 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
| 16 | 17 |
| 17 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 18 static const char kPlatformName[] = "chromium-win"; | 19 static const char kPlatformName[] = "chromium-win"; |
| 19 #elif defined(OS_MACOSX) | 20 #elif defined(OS_MACOSX) |
| 20 static const char kPlatformName[] = "chromium-mac"; | 21 static const char kPlatformName[] = "chromium-mac"; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 std::string* expected_result_value) { | 254 std::string* expected_result_value) { |
| 254 FilePath expected_result_path(result_dir_path); | 255 FilePath expected_result_path(result_dir_path); |
| 255 expected_result_path = expected_result_path.AppendASCII(test_case_file_name); | 256 expected_result_path = expected_result_path.AppendASCII(test_case_file_name); |
| 256 expected_result_path = expected_result_path.InsertBeforeExtension( | 257 expected_result_path = expected_result_path.InsertBeforeExtension( |
| 257 FILE_PATH_LITERAL("-expected")); | 258 FILE_PATH_LITERAL("-expected")); |
| 258 expected_result_path = | 259 expected_result_path = |
| 259 expected_result_path.ReplaceExtension(FILE_PATH_LITERAL("txt")); | 260 expected_result_path.ReplaceExtension(FILE_PATH_LITERAL("txt")); |
| 260 return file_util::ReadFileToString(expected_result_path, | 261 return file_util::ReadFileToString(expected_result_path, |
| 261 expected_result_value); | 262 expected_result_value); |
| 262 } | 263 } |
| OLD | NEW |