| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/logging.h" | 5 #include "base/logging.h" |
| 6 #include "chrome/browser/save_package.h" | 6 #include "chrome/browser/download/save_package.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 // 0 1 2 3 4 5 6 | 9 // 0 1 2 3 4 5 6 |
| 10 // 0123456789012345678901234567890123456789012345678901234567890123456789 | 10 // 0123456789012345678901234567890123456789012345678901234567890123456789 |
| 11 static const wchar_t* const kLongFilePath = | 11 static const wchar_t* const kLongFilePath = |
| 12 L"C:\\EFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz01234567" | 12 L"C:\\EFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz01234567" |
| 13 L"89ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz012345" | 13 L"89ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz012345" |
| 14 L"6789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123" | 14 L"6789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123" |
| 15 L"456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789a.htm"; | 15 L"456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789a.htm"; |
| 16 | 16 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 std::wstring file_name; | 161 std::wstring file_name; |
| 162 bool ok = GetGeneratedFilename(false, | 162 bool ok = GetGeneratedFilename(false, |
| 163 kGeneratedFiles[i].disposition, | 163 kGeneratedFiles[i].disposition, |
| 164 kGeneratedFiles[i].url, | 164 kGeneratedFiles[i].url, |
| 165 kGeneratedFiles[i].need_htm_ext, | 165 kGeneratedFiles[i].need_htm_ext, |
| 166 &file_name); | 166 &file_name); |
| 167 ASSERT_FALSE(ok); | 167 ASSERT_FALSE(ok); |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| OLD | NEW |