| 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 "base/test/test_shortcut_win.h" | 5 #include "base/test/test_shortcut_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <propkey.h> | 9 #include <propkey.h> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
| 15 #include "base/win/scoped_propvariant.h" | 15 #include "base/win/scoped_propvariant.h" |
| 16 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 namespace win { | 20 namespace win { |
| 21 | 21 |
| 22 void ValidatePathsAreEqual(const base::FilePath& expected_path, | 22 void ValidatePathsAreEqual(const base::FilePath& expected_path, |
| 23 const base::FilePath& actual_path) { | 23 const base::FilePath& actual_path) { |
| 24 wchar_t long_expected_path_chars[MAX_PATH] = {0}; | 24 wchar_t long_expected_path_chars[MAX_PATH] = {0}; |
| 25 wchar_t long_actual_path_chars[MAX_PATH] = {0}; | 25 wchar_t long_actual_path_chars[MAX_PATH] = {0}; |
| 26 | 26 |
| 27 // If |expected_path| is empty confirm immediately that |actual_path| is also | 27 // If |expected_path| is empty confirm immediately that |actual_path| is also |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 break; | 146 break; |
| 147 default: | 147 default: |
| 148 ADD_FAILURE() << "Unexpected variant type: " << pv_dual_mode.get().vt; | 148 ADD_FAILURE() << "Unexpected variant type: " << pv_dual_mode.get().vt; |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace win | 154 } // namespace win |
| 155 } // namespace base | 155 } // namespace base |
| OLD | NEW |