Index: net/cert/multi_threaded_cert_verifier_unittest.cc |
diff --git a/net/cert/multi_threaded_cert_verifier_unittest.cc b/net/cert/multi_threaded_cert_verifier_unittest.cc |
index 17d23d34995bc457e31370a52c9606aad1eccccc..3a0c765d2120969e1fb08b7ed808dc0cfe1953ae 100644 |
--- a/net/cert/multi_threaded_cert_verifier_unittest.cc |
+++ b/net/cert/multi_threaded_cert_verifier_unittest.cc |
@@ -279,7 +279,13 @@ TEST_F(MultiThreadedCertVerifierTest, CancelRequest) { |
} |
// Tests that a canceled request is not leaked. |
-TEST_F(MultiThreadedCertVerifierTest, CancelRequestThenQuit) { |
+#if !defined(LEAK_SANITIZER) |
+#define MAYBE_CancelRequestThenQuit CancelRequestThenQuit |
+#else |
+// See PR303886. LeakSanitizer flags a leak here. |
+#define MAYBE_CancelRequestThenQuit DISABLED_CancelRequestThenQuit |
+#endif |
+TEST_F(MultiThreadedCertVerifierTest, MAYBE_CancelRequestThenQuit) { |
base::FilePath certs_dir = GetTestCertsDirectory(); |
scoped_refptr<X509Certificate> test_cert( |
ImportCertFromFile(certs_dir, "ok_cert.pem")); |