1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_PROFILES_FILE_PATH_VERIFIER_WIN_H_ 6#define CHROME_BROWSER_PROFILES_FILE_PATH_VERIFIER_WIN_H_ 7 8#include <string> 9 10namespace base { 11class FilePath; 12} 13 14namespace internal { 15 16enum PathComparisonReason { 17 PATH_COMPARISON_EQUAL, 18 PATH_COMPARISON_FAILED_UNKNOWN, 19 PATH_COMPARISON_FAILED_SAMEBASE, // Not the same path, but same BaseName. 20 PATH_COMPARISON_FAILED_SAMEDIR, // Not the same path, but same DirName. 21}; 22 23// Returns a PathComparisonReason based on the result of comparing |path1| 24// and |path2| case-insensitively. 25PathComparisonReason ComparePathsIgnoreCase(const base::FilePath& path1, 26 const base::FilePath& path2); 27 28} // namespace internal 29 30// Verifies that the Preferences file at |pref_file_path| is found as expected 31// on disk and reports the result via UMA stat Stability.FileAtPath.Preferences. 32void VerifyPreferencesFile(const base::FilePath& pref_file_path); 33 34#endif // CHROME_BROWSER_PROFILES_FILE_PATH_VERIFIER_WIN_H_ 35