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/permissions/mock_permission_request.h" | 5 #include "chrome/browser/permissions/mock_permission_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 "chrome/grit/theme_resources.h" | |
10 #include "ui/vector_icons/vector_icons.h" | 9 #include "ui/vector_icons/vector_icons.h" |
11 | 10 |
12 MockPermissionRequest::MockPermissionRequest() | 11 MockPermissionRequest::MockPermissionRequest() |
13 : MockPermissionRequest("test", | 12 : MockPermissionRequest("test", |
14 "button", | 13 "button", |
15 "button", | 14 "button", |
16 GURL("http://www.google.com"), | 15 GURL("http://www.google.com"), |
17 PermissionRequestType::UNKNOWN, | 16 PermissionRequestType::UNKNOWN, |
18 PermissionRequestGestureType::UNKNOWN) {} | 17 PermissionRequestGestureType::UNKNOWN) {} |
19 | 18 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 : granted_(false), | 121 : granted_(false), |
123 cancelled_(false), | 122 cancelled_(false), |
124 finished_(false), | 123 finished_(false), |
125 request_type_(request_type), | 124 request_type_(request_type), |
126 gesture_type_(gesture_type) { | 125 gesture_type_(gesture_type) { |
127 text_ = base::UTF8ToUTF16(text); | 126 text_ = base::UTF8ToUTF16(text); |
128 accept_label_ = base::UTF8ToUTF16(accept_label); | 127 accept_label_ = base::UTF8ToUTF16(accept_label); |
129 deny_label_ = base::UTF8ToUTF16(deny_label); | 128 deny_label_ = base::UTF8ToUTF16(deny_label); |
130 origin_ = origin.GetOrigin(); | 129 origin_ = origin.GetOrigin(); |
131 } | 130 } |
OLD | NEW |