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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_unittest.cc

Issue 2250893002: Permission Action Reporting: Add num_prior_* fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@par-new-fields-proto
Patch Set: todo Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_decision_auto_blocker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index 9a2486f8c6e82cb0c5f894b85a4f382c857044a0..7a8c34bec92e90a3379460b3108b0a031a29989f 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -1026,16 +1026,17 @@ class RemovePasswordsTester {
class RemovePermissionPromptCountsTest {
public:
explicit RemovePermissionPromptCountsTest(TestingProfile* profile)
- : blocker_(new PermissionDecisionAutoBlocker(profile)) {}
+ : blocker_(new PermissionDecisionAutoBlocker(profile)),
+ profile_(profile) {}
int GetDismissCount(const GURL& url, content::PermissionType permission) {
- return blocker_->GetActionCountForTest(url, permission,
- PermissionDecisionAutoBlocker::kPromptDismissCountKey);
+ return PermissionDecisionAutoBlocker::GetDismissCount(
+ url, permission, profile_);
}
int GetIgnoreCount(const GURL& url, content::PermissionType permission) {
- return blocker_->GetActionCountForTest(url, permission,
- PermissionDecisionAutoBlocker::kPromptIgnoreCountKey);
+ return PermissionDecisionAutoBlocker::GetIgnoreCount(
+ url, permission, profile_);
}
int RecordIgnore(const GURL& url, content::PermissionType permission) {
@@ -1049,6 +1050,7 @@ class RemovePermissionPromptCountsTest {
private:
std::unique_ptr<PermissionDecisionAutoBlocker> blocker_;
+ TestingProfile* profile_;
DISALLOW_COPY_AND_ASSIGN(RemovePermissionPromptCountsTest);
};
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_decision_auto_blocker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698