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

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

Issue 2731413003: Remove UWS Rappor (Closed)
Patch Set: Remove BEHAVIOUR_LOG_TO_RAPPOR Created 3 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
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 "chrome/browser/safe_browsing/srt_fetcher_win.h" 5 #include "chrome/browser/safe_browsing/srt_fetcher_win.h"
6 6
7 #include <initializer_list> 7 #include <initializer_list>
8 #include <iterator> 8 #include <iterator>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // doesn't have the MayBlock trait. 101 // doesn't have the MayBlock trait.
102 return mock_time_task_runner_.get(); 102 return mock_time_task_runner_.get();
103 } 103 }
104 104
105 // Schedules a single reporter to run. 105 // Schedules a single reporter to run.
106 void RunReporter(int exit_code_to_report, 106 void RunReporter(int exit_code_to_report,
107 const base::FilePath& exe_path = base::FilePath()) { 107 const base::FilePath& exe_path = base::FilePath()) {
108 exit_code_to_report_ = exit_code_to_report; 108 exit_code_to_report_ = exit_code_to_report;
109 auto invocation = SwReporterInvocation::FromFilePath(exe_path); 109 auto invocation = SwReporterInvocation::FromFilePath(exe_path);
110 invocation.supported_behaviours = 110 invocation.supported_behaviours =
111 SwReporterInvocation::BEHAVIOUR_LOG_TO_RAPPOR |
112 SwReporterInvocation::BEHAVIOUR_LOG_EXIT_CODE_TO_PREFS | 111 SwReporterInvocation::BEHAVIOUR_LOG_EXIT_CODE_TO_PREFS |
113 SwReporterInvocation::BEHAVIOUR_TRIGGER_PROMPT | 112 SwReporterInvocation::BEHAVIOUR_TRIGGER_PROMPT |
114 SwReporterInvocation::BEHAVIOUR_ALLOW_SEND_REPORTER_LOGS; 113 SwReporterInvocation::BEHAVIOUR_ALLOW_SEND_REPORTER_LOGS;
115 114
116 SwReporterQueue invocations; 115 SwReporterQueue invocations;
117 invocations.push(invocation); 116 invocations.push(invocation);
118 RunSwReporters(invocations, base::Version("1.2.3")); 117 RunSwReporters(invocations, base::Version("1.2.3"));
119 } 118 }
120 119
121 // Schedules a queue of reporters to run. 120 // Schedules a queue of reporters to run.
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 // is now recent, because the run is part of the same set of invocations. 572 // is now recent, because the run is part of the same set of invocations.
574 { 573 {
575 SCOPED_TRACE("second launch"); 574 SCOPED_TRACE("second launch");
576 ExpectLoggingSwitches(reporter_launch_parameters_[1], true); 575 ExpectLoggingSwitches(reporter_launch_parameters_[1], true);
577 ExpectLastReportSentInTheLastHour(); 576 ExpectLastReportSentInTheLastHour();
578 } 577 }
579 ExpectToRunAgain(kDaysBetweenSuccessfulSwReporterRuns); 578 ExpectToRunAgain(kDaysBetweenSuccessfulSwReporterRuns);
580 } 579 }
581 580
582 } // namespace safe_browsing 581 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc ('k') | chrome/browser/safe_browsing/srt_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698