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

Side by Side Diff: content/common/quarantine/quarantine_mac.mm

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 #import <ApplicationServices/ApplicationServices.h> 7 #import <ApplicationServices/ApplicationServices.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 if (![source_url 337 if (![source_url
338 isEqualToString:base::SysUTF8ToNSString(expected_source_url.spec())]) 338 isEqualToString:base::SysUTF8ToNSString(expected_source_url.spec())])
339 return false; 339 return false;
340 340
341 return !referrer_url.is_valid() || 341 return !referrer_url.is_valid() ||
342 [[[properties valueForKey:(NSString*)kLSQuarantineOriginURLKey] 342 [[[properties valueForKey:(NSString*)kLSQuarantineOriginURLKey]
343 description] 343 description]
344 isEqualToString:base::SysUTF8ToNSString(referrer_url.spec())]; 344 isEqualToString:base::SysUTF8ToNSString(referrer_url.spec())];
345 } 345 }
346 346
347 // Only to be used in tests.
348 bool IsQuarantineSupportedForTesting() {
349 return true;
350 }
351
347 } // namespace content 352 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698