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

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

Issue 2812773002: Refactor Clipboard Last Modified Time Storage (Closed)
Patch Set: itri-state enum Created 3 years, 8 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
« no previous file with comments | « ui/base/test/test_clipboard.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/test_clipboard.cc
diff --git a/ui/base/test/test_clipboard.cc b/ui/base/test/test_clipboard.cc
index 7bceec164e97425f90bead0e72c2fd4064ade8c5..1fdb268db56337aa7ed10e611addb761d395ddb7 100644
--- a/ui/base/test/test_clipboard.cc
+++ b/ui/base/test/test_clipboard.cc
@@ -26,7 +26,7 @@ Clipboard* TestClipboard::CreateForCurrentThread() {
return clipboard;
}
-void TestClipboard::SetClipboardLastModifiedTime(const base::Time& time) {
+void TestClipboard::SetLastModifiedTime(const base::Time& time) {
last_modified_time_ = time;
}
@@ -130,10 +130,14 @@ void TestClipboard::ReadData(const FormatType& format,
*result = it->second;
}
-base::Time TestClipboard::GetClipboardLastModifiedTime() const {
+base::Time TestClipboard::GetLastModifiedTime() const {
return last_modified_time_;
}
+void TestClipboard::ClearLastModifiedTime() {
+ last_modified_time_ = base::Time();
+}
+
void TestClipboard::WriteObjects(ClipboardType type, const ObjectMap& objects) {
Clear(type);
default_store_type_ = type;
« no previous file with comments | « ui/base/test/test_clipboard.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698