aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/include/firebase/firestore/timestamp.h
diff options
context:
space:
mode:
authorGravatar Konstantin Varlamov <var-const@users.noreply.github.com>2018-03-29 18:27:11 -0400
committerGravatar GitHub <noreply@github.com>2018-03-29 18:27:11 -0400
commitb1fa08a975b326b59e9a511aff062e34a456f236 (patch)
tree0b4159abdebee6cbdabfa6fa58bcb1ddb12f352d /Firestore/core/include/firebase/firestore/timestamp.h
parent45e68a352d4ceb2e2646170bf134ea22f46bc513 (diff)
C++ migration: fix some Timestamp tests failing on Linux. (#999)
Some Timestamp tests check that constructor fails if given values beyond the supported (pretty wide) range. In case Timestamp is created from chrono::time_point, the time_point's underlying duration is implementation-defined and may overflow when tests try to set it to a value beyond Timestamp supported range. To work around this, make these tests not run if time_point cannot represent boundary values on this platform. For example, on OS X, time_point has microseconds precision, so the tests may run, but on Linux, time_point has nanoseconds precision, which would overflow.
Diffstat (limited to 'Firestore/core/include/firebase/firestore/timestamp.h')
0 files changed, 0 insertions, 0 deletions