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

Unified Diff: ui/base/test/test_clipboard.cc

Issue 1114213004: Remove NOTIMPLEMENTED() logspam on Android clipboard actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: ui/base/test/test_clipboard.cc
diff --git a/ui/base/test/test_clipboard.cc b/ui/base/test/test_clipboard.cc
index e90296145c667d416b8b0d2815204732ff94c955..530037d2ff75fceb192199680ee975a70012b219 100644
--- a/ui/base/test/test_clipboard.cc
+++ b/ui/base/test/test_clipboard.cc
@@ -42,6 +42,18 @@ void TestClipboard::Clear(ClipboardType type) {
void TestClipboard::ReadAvailableTypes(ClipboardType type,
std::vector<base::string16>* types,
bool* contains_filenames) const {
+ types->clear();
+
+ if (IsFormatAvailable(Clipboard::GetPlainTextFormatType(), type))
+ types->push_back(base::UTF8ToUTF16(kMimeTypeText));
+ if (IsFormatAvailable(Clipboard::GetHtmlFormatType(), type))
+ types->push_back(base::UTF8ToUTF16(kMimeTypeHTML));
+
+ if (IsFormatAvailable(Clipboard::GetRtfFormatType(), type))
+ types->push_back(base::UTF8ToUTF16(kMimeTypeRTF));
+ if (IsFormatAvailable(Clipboard::GetBitmapFormatType(), type))
+ types->push_back(base::UTF8ToUTF16(kMimeTypePNG));
+
*contains_filenames = false;
}
« ui/base/clipboard/clipboard_test_template.h ('K') | « ui/base/clipboard/clipboard_test_template.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698