| OLD | NEW |
| 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/ui/permission_bubble/permission_bubble_browser_test_uti
l.h" | 5 #include "chrome/browser/ui/permission_bubble/permission_bubble_browser_test_uti
l.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
| 10 #include "chrome/browser/permissions/mock_permission_request.h" | 10 #include "chrome/browser/permissions/mock_permission_request.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 : PermissionPrompt::Delegate() { | 22 : PermissionPrompt::Delegate() { |
| 23 } | 23 } |
| 24 | 24 |
| 25 TestPermissionBubbleViewDelegate::~TestPermissionBubbleViewDelegate() {} | 25 TestPermissionBubbleViewDelegate::~TestPermissionBubbleViewDelegate() {} |
| 26 | 26 |
| 27 const std::vector<PermissionRequest*>& | 27 const std::vector<PermissionRequest*>& |
| 28 TestPermissionBubbleViewDelegate::Requests() { | 28 TestPermissionBubbleViewDelegate::Requests() { |
| 29 return requests_; | 29 return requests_; |
| 30 } | 30 } |
| 31 | 31 |
| 32 const std::vector<bool>& TestPermissionBubbleViewDelegate::AcceptStates() { | |
| 33 return accept_states_; | |
| 34 } | |
| 35 | |
| 36 PermissionBubbleBrowserTest::PermissionBubbleBrowserTest() { | 32 PermissionBubbleBrowserTest::PermissionBubbleBrowserTest() { |
| 37 } | 33 } |
| 38 | 34 |
| 39 PermissionBubbleBrowserTest::~PermissionBubbleBrowserTest() { | 35 PermissionBubbleBrowserTest::~PermissionBubbleBrowserTest() { |
| 40 } | 36 } |
| 41 | 37 |
| 42 void PermissionBubbleBrowserTest::SetUpOnMainThread() { | 38 void PermissionBubbleBrowserTest::SetUpOnMainThread() { |
| 43 ExtensionBrowserTest::SetUpOnMainThread(); | 39 ExtensionBrowserTest::SetUpOnMainThread(); |
| 44 | 40 |
| 45 // Add a single permission request. | 41 // Add a single permission request. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 75 } | 71 } |
| 76 | 72 |
| 77 PermissionBubbleKioskBrowserTest::~PermissionBubbleKioskBrowserTest() { | 73 PermissionBubbleKioskBrowserTest::~PermissionBubbleKioskBrowserTest() { |
| 78 } | 74 } |
| 79 | 75 |
| 80 void PermissionBubbleKioskBrowserTest::SetUpCommandLine( | 76 void PermissionBubbleKioskBrowserTest::SetUpCommandLine( |
| 81 base::CommandLine* command_line) { | 77 base::CommandLine* command_line) { |
| 82 PermissionBubbleBrowserTest::SetUpCommandLine(command_line); | 78 PermissionBubbleBrowserTest::SetUpCommandLine(command_line); |
| 83 command_line->AppendSwitch(switches::kKioskMode); | 79 command_line->AppendSwitch(switches::kKioskMode); |
| 84 } | 80 } |
| OLD | NEW |