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

Unified Diff: ash/system/toast/toast_manager_unittest.cc

Issue 2031973003: Use int32_t for duration property of toast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « ash/system/toast/toast_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/toast/toast_manager_unittest.cc
diff --git a/ash/system/toast/toast_manager_unittest.cc b/ash/system/toast/toast_manager_unittest.cc
index d33e68023103aa8cd13fcf28759a376981944320..a5b2e832698c87b69a88a86c9ea562c09a897323 100644
--- a/ash/system/toast/toast_manager_unittest.cc
+++ b/ash/system/toast/toast_manager_unittest.cc
@@ -16,7 +16,7 @@
namespace ash {
// Long duration so the timeout doesn't occur.
-const int64_t kLongLongDuration = INT64_MAX;
+const int32_t kLongLongDuration = INT32_MAX;
class DummyEvent : public ui::Event {
public:
@@ -76,7 +76,7 @@ class ToastManagerTest : public test::AshTestBase {
Shelf::ForPrimaryDisplay()->SetAutoHideBehavior(behavior);
}
- std::string ShowToast(const std::string& text, uint64_t duration) {
+ std::string ShowToast(const std::string& text, int32_t duration) {
std::string id = "TOAST_ID_" + base::UintToString(serial_++);
manager()->Show(ToastData(id, text, duration));
return id;
« no previous file with comments | « ash/system/toast/toast_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698