Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: chrome/browser/ui/website_settings/mock_permission_bubble_delegate.cc

Issue 151593005: Implement permission bubble view for Cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback addressed Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+}
+
+

Powered by Google App Engine
This is Rietveld 408576698