| 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 "chrome/installer/util/shell_util.h" | 5 #include "chrome/installer/util/shell_util.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/base_paths_win.h" | 10 #include "base/base_paths_win.h" |
| 11 #include "base/file_util.h" | |
| 12 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
| 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/md5.h" | 14 #include "base/md5.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/synchronization/cancellation_flag.h" | 18 #include "base/synchronization/cancellation_flag.h" |
| 19 #include "base/test/scoped_path_override.h" | 19 #include "base/test/scoped_path_override.h" |
| 20 #include "base/test/test_shortcut_win.h" | 20 #include "base/test/test_shortcut_win.h" |
| 21 #include "base/win/shortcut.h" | 21 #include "base/win/shortcut.h" |
| 22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 | 864 |
| 865 const base::string16 expected[] = { L"", L"MY", L"MZXQ", L"MZXW6", L"MZXW6YQ", | 865 const base::string16 expected[] = { L"", L"MY", L"MZXQ", L"MZXW6", L"MZXW6YQ", |
| 866 L"MZXW6YTB", L"MZXW6YTBOI"}; | 866 L"MZXW6YTB", L"MZXW6YTBOI"}; |
| 867 | 867 |
| 868 // Run the tests, with one more letter in the input every pass. | 868 // Run the tests, with one more letter in the input every pass. |
| 869 for (int i = 0; i < arraysize(expected); ++i) { | 869 for (int i = 0; i < arraysize(expected); ++i) { |
| 870 ASSERT_EQ(expected[i], | 870 ASSERT_EQ(expected[i], |
| 871 ShellUtil::ByteArrayToBase32(test_array, i)); | 871 ShellUtil::ByteArrayToBase32(test_array, i)); |
| 872 } | 872 } |
| 873 } | 873 } |
| OLD | NEW |