Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: base/test/test_shortcut_win.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/test/test_reg_util_win_unittest.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/test/test_reg_util_win_unittest.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698