| 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();
|
|
|