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

Side by Side Diff: ios/web/net/cert_verifier_block_adapter_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/web/net/cert_verifier_block_adapter.h" 5 #include "ios/web/net/cert_verifier_block_adapter.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/test/ios/wait_util.h" 8 #include "base/test/ios/wait_util.h"
9 #include "ios/web/public/test/test_web_thread_bundle.h" 9 #include "ios/web/public/test/test_web_thread_bundle.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/base/test_data_directory.h"
12 #include "net/cert/cert_verifier.h" 11 #include "net/cert/cert_verifier.h"
13 #include "net/cert/cert_verify_result.h" 12 #include "net/cert/cert_verify_result.h"
14 #include "net/cert/crl_set.h" 13 #include "net/cert/crl_set.h"
15 #include "net/cert/mock_cert_verifier.h" 14 #include "net/cert/mock_cert_verifier.h"
16 #include "net/cert/x509_certificate.h" 15 #include "net/cert/x509_certificate.h"
17 #include "net/log/net_log.h" 16 #include "net/log/net_log.h"
18 #include "net/test/cert_test_util.h" 17 #include "net/test/cert_test_util.h"
18 #include "net/test/test_data_directory.h"
19 #include "testing/platform_test.h" 19 #include "testing/platform_test.h"
20 20
21 namespace web { 21 namespace web {
22 22
23 namespace { 23 namespace {
24 // Test cert filename. 24 // Test cert filename.
25 const char kCertFileName[] = "ok_cert.pem"; 25 const char kCertFileName[] = "ok_cert.pem";
26 // Test hostname for CertVerifier. 26 // Test hostname for CertVerifier.
27 const char kHostName[] = "www.example.com"; 27 const char kHostName[] = "www.example.com";
28 28
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 }); 165 });
166 test_adapter.reset(); 166 test_adapter.reset();
167 167
168 // Make sure that the completion handler is called. 168 // Make sure that the completion handler is called.
169 base::test::ios::WaitUntilCondition(^{ 169 base::test::ios::WaitUntilCondition(^{
170 return verification_completed; 170 return verification_completed;
171 }, base::MessageLoop::current(), base::TimeDelta()); 171 }, base::MessageLoop::current(), base::TimeDelta());
172 } 172 }
173 173
174 } // namespace web 174 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/net/cert_host_pair_unittest.cc ('k') | ios/web/net/crw_cert_verification_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698