| 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" | 11 #include "base/file_util.h" |
| 12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.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/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/test/scoped_path_override.h" | 18 #include "base/test/scoped_path_override.h" |
| 19 #include "base/test/test_shortcut_win.h" | 19 #include "base/test/test_shortcut_win.h" |
| 20 #include "base/win/shortcut.h" | 20 #include "base/win/shortcut.h" |
| 21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 22 #include "chrome/installer/util/browser_distribution.h" | 22 #include "chrome/installer/util/browser_distribution.h" |
| 23 #include "chrome/installer/util/product.h" | 23 #include "chrome/installer/util/product.h" |
| 24 #include "chrome/installer/util/util_constants.h" | 24 #include "chrome/installer/util/util_constants.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 | 639 |
| 640 const string16 expected[] = { L"", L"MY", L"MZXQ", L"MZXW6", L"MZXW6YQ", | 640 const string16 expected[] = { L"", L"MY", L"MZXQ", L"MZXW6", L"MZXW6YQ", |
| 641 L"MZXW6YTB", L"MZXW6YTBOI"}; | 641 L"MZXW6YTB", L"MZXW6YTBOI"}; |
| 642 | 642 |
| 643 // Run the tests, with one more letter in the input every pass. | 643 // Run the tests, with one more letter in the input every pass. |
| 644 for (int i = 0; i < arraysize(expected); ++i) { | 644 for (int i = 0; i < arraysize(expected); ++i) { |
| 645 ASSERT_EQ(expected[i], | 645 ASSERT_EQ(expected[i], |
| 646 ShellUtil::ByteArrayToBase32(test_array, i)); | 646 ShellUtil::ByteArrayToBase32(test_array, i)); |
| 647 } | 647 } |
| 648 } | 648 } |
| OLD | NEW |