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

Side by Side Diff: content/common/quarantine/quarantine_win.cc

Issue 2618083002: Disable Quarantine tests on platforms its not supported. (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/public/common/quarantine.h" 5 #include "content/public/common/quarantine.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <cguid.h> 9 #include <cguid.h>
10 #include <objbase.h> 10 #include <objbase.h>
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 return FailedSaveResultToQuarantineResult(save_result); 341 return FailedSaveResultToQuarantineResult(save_result);
342 return QuarantineFileResult::OK; 342 return QuarantineFileResult::OK;
343 } 343 }
344 344
345 bool IsFileQuarantined(const base::FilePath& file, 345 bool IsFileQuarantined(const base::FilePath& file,
346 const GURL& source_url, 346 const GURL& source_url,
347 const GURL& referrer_url) { 347 const GURL& referrer_url) {
348 return ZoneIdentifierPresentForFile(file); 348 return ZoneIdentifierPresentForFile(file);
349 } 349 }
350 350
351 // Only to be used in tests.
352 bool IsQuarantineSupportedForTesting() {
353 return true;
354 }
355
351 } // namespace content 356 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698