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

Side by Side Diff: chrome/browser/permissions/permission_request_manager_unittest.cc

Issue 2922313002: Remove remaining dead code that was used to implement grouped permission drop downs (Closed)
Patch Set: Remove remaining dead code that was used to implement grouped permission drop downs Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 manager_.reset(new PermissionRequestManager(web_contents())); 54 manager_.reset(new PermissionRequestManager(web_contents()));
55 prompt_factory_.reset(new MockPermissionPromptFactory(manager_.get())); 55 prompt_factory_.reset(new MockPermissionPromptFactory(manager_.get()));
56 } 56 }
57 57
58 void TearDown() override { 58 void TearDown() override {
59 prompt_factory_.reset(); 59 prompt_factory_.reset();
60 manager_.reset(); 60 manager_.reset();
61 ChromeRenderViewHostTestHarness::TearDown(); 61 ChromeRenderViewHostTestHarness::TearDown();
62 } 62 }
63 63
64 void ToggleAccept(int index, bool value) {
65 manager_->ToggleAccept(index, value);
66 }
67
68 void Accept() { 64 void Accept() {
69 manager_->Accept(); 65 manager_->Accept();
70 } 66 }
71 67
72 void Deny() { 68 void Deny() {
73 manager_->Deny(); 69 manager_->Deny();
74 } 70 }
75 71
76 void Closing() { 72 void Closing() {
77 manager_->Closing(); 73 manager_->Closing();
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 PermissionUmaUtil::kPermissionsPromptMergedBubbleDenied, 636 PermissionUmaUtil::kPermissionsPromptMergedBubbleDenied,
641 static_cast<base::HistogramBase::Sample>( 637 static_cast<base::HistogramBase::Sample>(
642 PermissionRequestType::PERMISSION_MEDIASTREAM_MIC), 638 PermissionRequestType::PERMISSION_MEDIASTREAM_MIC),
643 1); 639 1);
644 histograms.ExpectBucketCount( 640 histograms.ExpectBucketCount(
645 PermissionUmaUtil::kPermissionsPromptMergedBubbleDenied, 641 PermissionUmaUtil::kPermissionsPromptMergedBubbleDenied,
646 static_cast<base::HistogramBase::Sample>( 642 static_cast<base::HistogramBase::Sample>(
647 PermissionRequestType::PERMISSION_MEDIASTREAM_CAMERA), 643 PermissionRequestType::PERMISSION_MEDIASTREAM_CAMERA),
648 1); 644 1);
649 } 645 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698