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

Unified Diff: base/mac/mac_util_unittest.mm

Issue 6990066: Mac TimeMachine File Exclusions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: base/mac/mac_util_unittest.mm
===================================================================
--- base/mac/mac_util_unittest.mm (revision 86429)
+++ base/mac/mac_util_unittest.mm (working copy)
@@ -106,15 +106,14 @@
NSURL* fileURL = [NSURL URLWithString:dummyFilePath];
// Reset the exclusion in case it was set previously.
SetFileBackupExclusion(file_path, false);
- Boolean excludeByPath;
// Initial state should be non-excluded.
- EXPECT_FALSE(CSBackupIsItemExcluded((CFURLRef)fileURL, &excludeByPath));
+ EXPECT_FALSE(CSBackupIsItemExcluded((CFURLRef)fileURL, NULL));
// Exclude the file.
EXPECT_TRUE(SetFileBackupExclusion(file_path, true));
- EXPECT_TRUE(CSBackupIsItemExcluded((CFURLRef)fileURL, &excludeByPath));
+ EXPECT_TRUE(CSBackupIsItemExcluded((CFURLRef)fileURL, NULL));
// Un-exclude the file.
EXPECT_TRUE(SetFileBackupExclusion(file_path, false));
Mark Mentovai 2011/05/25 01:14:35 This (and line 108) is the portion of the test tha
mrossetti 2011/05/26 21:02:40 Done.
- EXPECT_FALSE(CSBackupIsItemExcluded((CFURLRef)fileURL, &excludeByPath));
+ EXPECT_FALSE(CSBackupIsItemExcluded((CFURLRef)fileURL, NULL));
}
TEST_F(MacUtilTest, TestGetValueFromDictionary) {

Powered by Google App Engine
This is Rietveld 408576698