| OLD | NEW |
| 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 "chrome/browser/ui/website_settings/mock_permission_bubble_request.h" | 5 #include "chrome/browser/ui/website_settings/mock_permission_bubble_request.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 origin_ = GURL("http://www.google.com"); | 54 origin_ = GURL("http://www.google.com"); |
| 55 } | 55 } |
| 56 | 56 |
| 57 MockPermissionBubbleRequest::~MockPermissionBubbleRequest() {} | 57 MockPermissionBubbleRequest::~MockPermissionBubbleRequest() {} |
| 58 | 58 |
| 59 int MockPermissionBubbleRequest::GetIconId() const { | 59 int MockPermissionBubbleRequest::GetIconId() const { |
| 60 // Use a valid icon ID to support UI tests. | 60 // Use a valid icon ID to support UI tests. |
| 61 return IDR_INFOBAR_MEDIA_STREAM_CAMERA; | 61 return IDR_INFOBAR_MEDIA_STREAM_CAMERA; |
| 62 } | 62 } |
| 63 | 63 |
| 64 base::string16 MockPermissionBubbleRequest::GetMessageText() const { | |
| 65 return text_; | |
| 66 } | |
| 67 | |
| 68 base::string16 MockPermissionBubbleRequest::GetMessageTextFragment() const { | 64 base::string16 MockPermissionBubbleRequest::GetMessageTextFragment() const { |
| 69 return text_; | 65 return text_; |
| 70 } | 66 } |
| 71 | 67 |
| 72 GURL MockPermissionBubbleRequest::GetOrigin() const { | 68 GURL MockPermissionBubbleRequest::GetOrigin() const { |
| 73 return origin_; | 69 return origin_; |
| 74 } | 70 } |
| 75 | 71 |
| 76 void MockPermissionBubbleRequest::PermissionGranted() { | 72 void MockPermissionBubbleRequest::PermissionGranted() { |
| 77 granted_ = true; | 73 granted_ = true; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 95 } | 91 } |
| 96 | 92 |
| 97 bool MockPermissionBubbleRequest::cancelled() { | 93 bool MockPermissionBubbleRequest::cancelled() { |
| 98 return cancelled_; | 94 return cancelled_; |
| 99 } | 95 } |
| 100 | 96 |
| 101 bool MockPermissionBubbleRequest::finished() { | 97 bool MockPermissionBubbleRequest::finished() { |
| 102 return finished_; | 98 return finished_; |
| 103 } | 99 } |
| 104 | 100 |
| OLD | NEW |