| Index: chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
|
| diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
|
| index bafed99937f51a64d83d9dfad16997a22722dd4a..3c3a16f6f55dce93866f61a88a907f3867b8598c 100644
|
| --- a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
|
| +++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
|
| @@ -151,22 +151,22 @@ class MockReporter : public ChromeFraudulentCertificateReporter {
|
| };
|
|
|
| static void DoReportIsSent() {
|
| - scoped_refptr<ChromeURLRequestContext> context = new ChromeURLRequestContext;
|
| - SendingTestReporter reporter(context.get());
|
| + ChromeURLRequestContext context;
|
| + SendingTestReporter reporter(&context);
|
| SSLInfo info = GetGoodSSLInfo();
|
| reporter.SendReport("mail.google.com", info, true);
|
| }
|
|
|
| static void DoReportIsNotSent() {
|
| - scoped_refptr<ChromeURLRequestContext> context = new ChromeURLRequestContext;
|
| - NotSendingTestReporter reporter(context.get());
|
| + ChromeURLRequestContext context;
|
| + NotSendingTestReporter reporter(&context);
|
| SSLInfo info = GetBadSSLInfo();
|
| reporter.SendReport("www.example.com", info, true);
|
| }
|
|
|
| static void DoMockReportIsSent() {
|
| - scoped_refptr<ChromeURLRequestContext> context = new ChromeURLRequestContext;
|
| - MockReporter reporter(context.get());
|
| + ChromeURLRequestContext context;
|
| + MockReporter reporter(&context);
|
| SSLInfo info = GetGoodSSLInfo();
|
| reporter.SendReport("mail.google.com", info, true);
|
| }
|
| @@ -201,4 +201,3 @@ TEST(ChromeFraudulentCertificateReporterTest, ReportIsNotSent) {
|
| }
|
|
|
| } // namespace chrome_browser_net
|
| -
|
|
|