| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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) |
| 34 static const char kPlatformName[] = "chromium-linux"; | 34 static const char kPlatformName[] = "chromium-linux"; |
| 35 #elif defined(OS_OPENBSD) | 35 #elif defined(OS_OPENBSD) |
| 36 static const char kPlatformName[] = "chromium-openbsd"; | 36 static const char kPlatformName[] = "chromium-openbsd"; |
| 37 #elif defined(OS_FREEBSD) |
| 38 static const char kPlatformName[] = "chromium-freebsd"; |
| 37 #elif defined(OS_ANDROID) | 39 #elif defined(OS_ANDROID) |
| 38 static const char kPlatformName[] = "chromium-android"; | 40 static const char kPlatformName[] = "chromium-android"; |
| 39 #else | 41 #else |
| 40 #error No known OS defined | 42 #error No known OS defined |
| 41 #endif | 43 #endif |
| 42 | 44 |
| 43 namespace content { | 45 namespace content { |
| 44 namespace { | 46 namespace { |
| 45 | 47 |
| 46 bool ReadExpectedResult(const base::FilePath& result_dir_path, | 48 bool ReadExpectedResult(const base::FilePath& result_dir_path, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 expected.size())); | 207 expected.size())); |
| 206 EXPECT_NE(-1, file_util::WriteFile(actual_filename, | 208 EXPECT_NE(-1, file_util::WriteFile(actual_filename, |
| 207 actual.c_str(), | 209 actual.c_str(), |
| 208 actual.size())); | 210 actual.size())); |
| 209 return base::StringPrintf("Wrote %"PRFilePath" %"PRFilePath, | 211 return base::StringPrintf("Wrote %"PRFilePath" %"PRFilePath, |
| 210 expected_filename.value().c_str(), | 212 expected_filename.value().c_str(), |
| 211 actual_filename.value().c_str()); | 213 actual_filename.value().c_str()); |
| 212 } | 214 } |
| 213 | 215 |
| 214 } // namespace content | 216 } // namespace content |
| OLD | NEW |