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

Side by Side Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" 5 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "chrome/browser/net/chrome_url_request_context.h" 15 #include "chrome/browser/net/chrome_url_request_context.h"
16 #include "content/public/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
17 #include "net/base/cert_test_util.h" 17 #include "net/base/cert_test_util.h"
18 #include "net/base/ssl_info.h"
19 #include "net/base/test_data_directory.h" 18 #include "net/base/test_data_directory.h"
20 #include "net/base/transport_security_state.h"
21 #include "net/base/x509_certificate.h" 19 #include "net/base/x509_certificate.h"
20 #include "net/http/transport_security_state.h"
21 #include "net/ssl/ssl_info.h"
22 #include "net/url_request/fraudulent_certificate_reporter.h" 22 #include "net/url_request/fraudulent_certificate_reporter.h"
23 #include "net/url_request/url_request.h" 23 #include "net/url_request/url_request.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using net::SSLInfo; 27 using net::SSLInfo;
28 28
29 namespace chrome_browser_net { 29 namespace chrome_browser_net {
30 30
31 // Builds an SSLInfo from an invalid cert chain. In this case, the cert is 31 // Builds an SSLInfo from an invalid cert chain. In this case, the cert is
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 199 }
200 200
201 TEST(ChromeFraudulentCertificateReporterTest, ReportIsNotSent) { 201 TEST(ChromeFraudulentCertificateReporterTest, ReportIsNotSent) {
202 MessageLoop loop(MessageLoop::TYPE_IO); 202 MessageLoop loop(MessageLoop::TYPE_IO);
203 content::TestBrowserThread io_thread(BrowserThread::IO, &loop); 203 content::TestBrowserThread io_thread(BrowserThread::IO, &loop);
204 loop.PostTask(FROM_HERE, base::Bind(&DoReportIsNotSent)); 204 loop.PostTask(FROM_HERE, base::Bind(&DoReportIsNotSent));
205 loop.RunUntilIdle(); 205 loop.RunUntilIdle();
206 } 206 }
207 207
208 } // namespace chrome_browser_net 208 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_fraudulent_certificate_reporter.cc ('k') | chrome/browser/net/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698