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

Unified Diff: components/timers/alarm_timer_unittest.cc

Issue 1585463002: Use sysroot for chromeos builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « components/timers/alarm_timer_chromeos.cc ('k') | net/third_party/nss/ssl/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/timers/alarm_timer_unittest.cc
diff --git a/components/timers/alarm_timer_unittest.cc b/components/timers/alarm_timer_unittest.cc
index 14c55a9fc7bdff6dfec4068c9c57aaa976693fad..879db5119da635c033c1c059d82c1b930b706c99 100644
--- a/components/timers/alarm_timer_unittest.cc
+++ b/components/timers/alarm_timer_unittest.cc
@@ -412,7 +412,11 @@ void TimerRanCallback(bool* did_run) {
}
bool IsAlarmTimerSupported() {
+#ifdef CLOCK_REALTIME_ALARM
int fd = timerfd_create(CLOCK_REALTIME_ALARM, 0);
+#else
+ int fd = -1;
+#endif
if (fd == -1) {
LOG(WARNING) << "CLOCK_REALTIME_ALARM is not supported on this system. "
« no previous file with comments | « components/timers/alarm_timer_chromeos.cc ('k') | net/third_party/nss/ssl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698