| Index: chrome/browser/ui/website_settings/mock_permission_bubble_delegate.cc
|
| diff --git a/chrome/browser/ui/website_settings/mock_permission_bubble_delegate.cc b/chrome/browser/ui/website_settings/mock_permission_bubble_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..93b1a2e3c693b20b8a2a909a196d86ea92166e41
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/website_settings/mock_permission_bubble_delegate.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/website_settings/mock_permission_bubble_delegate.h"
|
| +
|
| +#include "base/strings/utf_string_conversions.h"
|
| +
|
| +MockPermissionBubbleDelegate::MockPermissionBubbleDelegate(
|
| + const std::string& text) {
|
| + SetText(base::UTF8ToUTF16(text));
|
| +}
|
| +
|
| +MockPermissionBubbleDelegate::~MockPermissionBubbleDelegate() {}
|
| +
|
| +void MockPermissionBubbleDelegate::SetText(const base::string16& text) {
|
| + ON_CALL(*this, GetMessageText()).WillByDefault(testing::Return(text));
|
| + ON_CALL(*this, GetMessageTextFragment()).WillByDefault(testing::Return(text));
|
| +}
|
| +
|
| +
|
|
|