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

Side by Side Diff: chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 "chrome/browser/safe_browsing/certificate_reporting_service.h" 5 #include "chrome/browser/safe_browsing/certificate_reporting_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 13 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "base/test/histogram_tester.h" 15 #include "base/test/histogram_tester.h"
15 #include "base/test/simple_test_clock.h" 16 #include "base/test/simple_test_clock.h"
16 #include "base/test/thread_test_helper.h" 17 #include "base/test/thread_test_helper.h"
17 #include "base/time/clock.h" 18 #include "base/time/clock.h"
18 #include "base/time/time.h" 19 #include "base/time/time.h"
19 #include "chrome/browser/safe_browsing/certificate_reporting_service_test_utils. h" 20 #include "chrome/browser/safe_browsing/certificate_reporting_service_test_utils. h"
20 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 21 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
21 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" 22 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h"
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // callbacks should be called. The report id is again 0 since the pending 702 // callbacks should be called. The report id is again 0 since the pending
702 // report queue has been cleared above. 703 // report queue has been cleared above.
703 service()->Send(MakeReport("report1")); 704 service()->Send(MakeReport("report1"));
704 705
705 // Resume delayed report. Two reports are successfully sent. 706 // Resume delayed report. Two reports are successfully sent.
706 test_helper()->ResumeDelayedRequest(); 707 test_helper()->ResumeDelayedRequest();
707 test_helper()->WaitForRequestsDestroyed( 708 test_helper()->WaitForRequestsDestroyed(
708 ReportExpectation::Delayed({{"report0", RetryStatus::NOT_RETRIED}, 709 ReportExpectation::Delayed({{"report0", RetryStatus::NOT_RETRIED},
709 {"report1", RetryStatus::NOT_RETRIED}})); 710 {"report1", RetryStatus::NOT_RETRIED}}));
710 } 711 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698