OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/website_settings/mock_permission_bubble_request.h" |
| 6 |
| 7 #include "base/strings/utf_string_conversions.h" |
| 8 |
| 9 MockPermissionBubbleRequest::MockPermissionBubbleRequest( |
| 10 const std::string& text) { |
| 11 SetText(base::UTF8ToUTF16(text)); |
| 12 } |
| 13 |
| 14 MockPermissionBubbleRequest::~MockPermissionBubbleRequest() {} |
| 15 |
| 16 void MockPermissionBubbleRequest::SetText(const base::string16& text) { |
| 17 ON_CALL(*this, GetMessageText()).WillByDefault(testing::Return(text)); |
| 18 ON_CALL(*this, GetMessageTextFragment()).WillByDefault(testing::Return(text)); |
| 19 } |
OLD | NEW |