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

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

Issue 2790993003: Add Generic Implementation of ClipboardRecentContent (Closed)
Patch Set: tested interactively; works. removed field trial force-enable code Created 3 years, 9 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 2b1d483275550e5b46d4a8a60431e0fe0da6d0a1..7bceec164e97425f90bead0e72c2fd4064ade8c5 100644
--- a/ui/base/test/test_clipboard.cc
+++ b/ui/base/test/test_clipboard.cc
@@ -26,6 +26,10 @@ Clipboard* TestClipboard::CreateForCurrentThread() {
return clipboard;
}
+void TestClipboard::SetClipboardLastModifiedTime(const base::Time& time) {
+ last_modified_time_ = time;
+}
+
void TestClipboard::OnPreShutdown() {}
uint64_t TestClipboard::GetSequenceNumber(ClipboardType type) const {
@@ -126,6 +130,10 @@ void TestClipboard::ReadData(const FormatType& format,
*result = it->second;
}
+base::Time TestClipboard::GetClipboardLastModifiedTime() const {
+ return last_modified_time_;
+}
+
void TestClipboard::WriteObjects(ClipboardType type, const ObjectMap& objects) {
Clear(type);
default_store_type_ = type;
« components/open_from_clipboard/clipboard_recent_content.cc ('K') | « ui/base/test/test_clipboard.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698