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

Side by Side Diff: base/files/file_path.cc

Issue 1139883004: Testing: Fixed printing FilePaths when a test fails comparing them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bauerb-profiles-ephemeral
Patch Set: Remove unnecessary qualifier. Created 5 years, 7 months 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
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/files/file_path.h" 5 #include "base/files/file_path.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 return *this; 1310 return *this;
1311 #endif 1311 #endif
1312 } 1312 }
1313 1313
1314 #if defined(OS_ANDROID) 1314 #if defined(OS_ANDROID)
1315 bool FilePath::IsContentUri() const { 1315 bool FilePath::IsContentUri() const {
1316 return StartsWithASCII(path_, "content://", false /*case_sensitive*/); 1316 return StartsWithASCII(path_, "content://", false /*case_sensitive*/);
1317 } 1317 }
1318 #endif 1318 #endif
1319 1319
1320 } // namespace base 1320 void PrintTo(const FilePath& path, std::ostream* out) {
1321
1322 void PrintTo(const base::FilePath& path, std::ostream* out) {
1323 *out << path.value(); 1321 *out << path.value();
1324 } 1322 }
1323
1324 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698