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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 3656002: Rewrite text field context menu tests using accessiblity framework.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_frame/test/chrome_frame_test_utils.cc
===================================================================
--- chrome_frame/test/chrome_frame_test_utils.cc (revision 65066)
+++ chrome_frame/test/chrome_frame_test_utils.cc (working copy)
@@ -9,6 +9,8 @@
#include <iepmapi.h>
#include <sddl.h>
+#include "app/clipboard/clipboard.h"
+#include "app/clipboard/scoped_clipboard_writer.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_version_info.h"
@@ -471,6 +473,21 @@
return UTF8ToWide(gurl.PathForRequest());
}
+std::wstring GetClipboardText() {
+ Clipboard clipboard;
+ string16 text16;
+ clipboard.ReadText(Clipboard::BUFFER_STANDARD, &text16);
+ return UTF16ToWide(text16);
+}
+
+void SetClipboardText(const std::wstring& text) {
+ Clipboard clipboard;
+ {
+ ScopedClipboardWriter clipboard_writer(&clipboard);
+ clipboard_writer.WriteText(WideToUTF16(text));
+ }
+}
+
bool AddCFMetaTag(std::string* html_data) {
if (!html_data) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698