/external/libcxx/test/std/utilities/time/time.point/time.point.cast/ |
D | time_point_cast.pass.cpp | 28 typedef std::chrono::system_clock Clock; in test() 29 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 30 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 34 typedef decltype(std::chrono::time_point_cast<ToDuration>(f)) R; in test() 36 assert(std::chrono::time_point_cast<ToDuration>(f) == t); in test() 45 typedef std::chrono::system_clock Clock; in test_constexpr() 46 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 47 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 51 static_assert(std::chrono::time_point_cast<ToDuration>(f) == t, ""); in test_constexpr() 60 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main() [all …]
|
D | floor.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 35 assert(std::chrono::floor<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::floor<ToDuration>(f) == t, ""); in test_constexpr() 55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() [all …]
|
D | round.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 35 assert(std::chrono::round<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::round<ToDuration>(f) == t, ""); in test_constexpr() 55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() [all …]
|
D | ceil.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 35 assert(std::chrono::ceil<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::ceil<ToDuration>(f) == t, ""); in test_constexpr() 56 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main() [all …]
|
D | toduration.fail.cpp | 24 typedef std::chrono::system_clock Clock; in main() 25 typedef std::chrono::time_point<Clock, std::chrono::milliseconds> FromTimePoint; in main() 26 typedef std::chrono::time_point<Clock, std::chrono::minutes> ToTimePoint; in main() 27 std::chrono::time_point_cast<ToTimePoint>(FromTimePoint(std::chrono::milliseconds(3))); in main()
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/ |
D | duration_cast.pass.cpp | 28 typedef decltype(std::chrono::duration_cast<ToDuration>(f)) R; in test() 30 assert(std::chrono::duration_cast<ToDuration>(f) == d); in test() 36 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main() 37 test(std::chrono::milliseconds(7265000), std::chrono::minutes(121)); in main() 38 test(std::chrono::milliseconds(7265000), std::chrono::seconds(7265)); in main() 39 test(std::chrono::milliseconds(7265000), std::chrono::milliseconds(7265000)); in main() 40 test(std::chrono::milliseconds(7265000), std::chrono::microseconds(7265000000LL)); in main() 41 test(std::chrono::milliseconds(7265000), std::chrono::nanoseconds(7265000000000LL)); in main() 42 test(std::chrono::milliseconds(7265000), in main() 43 std::chrono::duration<double, std::ratio<3600> >(7265./3600)); in main() [all …]
|
D | floor.pass.cpp | 29 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 31 assert(std::chrono::floor<ToDuration>(f) == d); in test() 38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() 39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3)); in main() 40 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 121)); in main() 41 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-122)); in main() 45 …constexpr std::chrono::hours h1 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main() 47 …constexpr std::chrono::hours h2 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main()
|
D | ceil.pass.cpp | 30 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 32 assert(std::chrono::ceil<ToDuration>(f) == d); in test() 39 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main() 40 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main() 41 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 122)); in main() 42 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-121)); in main() 46 …constexpr std::chrono::hours h1 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main() 48 …constexpr std::chrono::hours h2 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()
|
D | round.pass.cpp | 29 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 31 assert(std::chrono::round<ToDuration>(f) == d); in test() 38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() 39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main() 40 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 122)); in main() 41 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-122)); in main() 45 …constexpr std::chrono::hours h1 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main() 47 …constexpr std::chrono::hours h2 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main()
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.comparisons/ |
D | op_equal.pass.cpp | 30 std::chrono::seconds s1(3); in main() 31 std::chrono::seconds s2(3); in main() 36 std::chrono::seconds s1(3); in main() 37 std::chrono::seconds s2(4); in main() 42 std::chrono::milliseconds s1(3); in main() 43 std::chrono::microseconds s2(3000); in main() 48 std::chrono::milliseconds s1(3); in main() 49 std::chrono::microseconds s2(4000); in main() 54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() [all …]
|
D | op_less.pass.cpp | 40 std::chrono::seconds s1(3); in main() 41 std::chrono::seconds s2(3); in main() 48 std::chrono::seconds s1(3); in main() 49 std::chrono::seconds s2(4); in main() 56 std::chrono::milliseconds s1(3); in main() 57 std::chrono::microseconds s2(3000); in main() 64 std::chrono::milliseconds s1(3); in main() 65 std::chrono::microseconds s2(4000); in main() 72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
D | op_-.pass.cpp | 25 std::chrono::seconds s1(3); in main() 26 std::chrono::seconds s2(5); in main() 27 std::chrono::seconds r = s1 - s2; in main() 31 std::chrono::seconds s1(3); in main() 32 std::chrono::microseconds s2(5); in main() 33 std::chrono::microseconds r = s1 - s2; in main() 37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_+.pass.cpp | 24 std::chrono::seconds s1(3); in main() 25 std::chrono::seconds s2(5); in main() 26 std::chrono::seconds r = s1 + s2; in main() 30 std::chrono::seconds s1(3); in main() 31 std::chrono::microseconds s2(5); in main() 32 std::chrono::microseconds r = s1 + s2; in main() 36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_mod_duration.pass.cpp | 25 std::chrono::nanoseconds ns1(15); in main() 26 std::chrono::nanoseconds ns2(6); in main() 27 std::chrono::nanoseconds r = ns1 % ns2; in main() 31 std::chrono::microseconds us1(15); in main() 32 std::chrono::nanoseconds ns2(28); in main() 33 std::chrono::nanoseconds r = us1 % ns2; in main() 37 std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main() 38 std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main() 39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main() 44 constexpr std::chrono::nanoseconds ns1(15); in main() [all …]
|
D | op_divide_duration.pass.cpp | 25 std::chrono::nanoseconds ns1(15); in main() 26 std::chrono::nanoseconds ns2(5); in main() 30 std::chrono::microseconds us1(15); in main() 31 std::chrono::nanoseconds ns2(5); in main() 35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 36 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 41 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 46 constexpr std::chrono::nanoseconds ns1(15); in main() 47 constexpr std::chrono::nanoseconds ns2(5); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.alg/ |
D | abs.pass.cpp | 28 typedef decltype(std::chrono::abs(f)) R; in test() 30 assert(std::chrono::abs(f) == d); in test() 37 test(std::chrono::milliseconds( 7290000), std::chrono::milliseconds( 7290000)); in main() 38 test(std::chrono::milliseconds(-7290000), std::chrono::milliseconds( 7290000)); in main() 39 test(std::chrono::minutes( 122), std::chrono::minutes( 122)); in main() 40 test(std::chrono::minutes(-122), std::chrono::minutes( 122)); in main() 41 test(std::chrono::hours(0), std::chrono::hours(0)); in main() 45 constexpr std::chrono::hours h1 = std::chrono::abs(std::chrono::hours(-3)); in main() 47 constexpr std::chrono::hours h2 = std::chrono::abs(std::chrono::hours(3)); in main()
|
/external/libcxx/test/std/utilities/time/time.traits/time.traits.specializations/ |
D | time_point.pass.cpp | 24 typedef std::chrono::system_clock C; in test() 25 typedef std::chrono::time_point<C, D1> T1; in test() 26 typedef std::chrono::time_point<C, D2> T2; in test() 27 typedef std::chrono::time_point<C, De> Te; in test() 34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 38 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() [all …]
|
D | duration.pass.cpp | 30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 31 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 34 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main() 37 std::chrono::duration<short, std::ratio<1, 1000> >, in main() 38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main() 39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.literals/ |
D | literals.pass.cpp | 22 static_assert ( std::is_same<decltype( 3h ), std::chrono::hours>::value, "" ); in main() 23 static_assert ( std::is_same<decltype( 3min ), std::chrono::minutes>::value, "" ); in main() 24 static_assert ( std::is_same<decltype( 3s ), std::chrono::seconds>::value, "" ); in main() 25 static_assert ( std::is_same<decltype( 3ms ), std::chrono::milliseconds>::value, "" ); in main() 26 static_assert ( std::is_same<decltype( 3us ), std::chrono::microseconds>::value, "" ); in main() 27 static_assert ( std::is_same<decltype( 3ns ), std::chrono::nanoseconds>::value, "" ); in main() 29 std::chrono::hours h = 4h; in main() 30 assert ( h == std::chrono::hours(4)); in main() 34 std::chrono::minutes min = 36min; in main() 35 assert ( min == std::chrono::minutes(36)); in main() [all …]
|
D | literals2.pass.cpp | 21 std::chrono::hours h = 4h; in main() 22 assert ( h == std::chrono::hours(4)); in main() 26 std::chrono::minutes min = 36min; in main() 27 assert ( min == std::chrono::minutes(36)); in main() 31 std::chrono::seconds s = 24s; in main() 32 assert ( s == std::chrono::seconds(24)); in main() 36 std::chrono::milliseconds ms = 247ms; in main() 37 assert ( ms == std::chrono::milliseconds(247)); in main() 41 std::chrono::microseconds us = 867us; in main() 42 assert ( us == std::chrono::microseconds(867)); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/ |
D | op_-duration.pass.cpp | 26 typedef std::chrono::time_point<std::chrono::system_clock> TimePoint; in test2739() 27 typedef std::chrono::duration<D> Dur; in test2739() 29 TimePoint t0 = std::chrono::system_clock::from_time_t(200); in test2739() 36 typedef std::chrono::system_clock Clock; in main() 37 typedef std::chrono::milliseconds Duration1; in main() 38 typedef std::chrono::microseconds Duration2; in main() 40 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 41 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 46 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 47 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
|
D | op_+.pass.cpp | 29 typedef std::chrono::system_clock Clock; in main() 30 typedef std::chrono::milliseconds Duration1; in main() 31 typedef std::chrono::microseconds Duration2; in main() 33 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 34 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 41 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 42 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 44 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
|
D | op_-time_point.pass.cpp | 25 typedef std::chrono::system_clock Clock; in main() 26 typedef std::chrono::milliseconds Duration1; in main() 27 typedef std::chrono::microseconds Duration2; in main() 29 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 30 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main() 35 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() 36 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
|
/external/libcxx/test/std/utilities/time/time.point/time.point.cons/ |
D | duration.pass.cpp | 23 typedef std::chrono::system_clock Clock; in main() 24 typedef std::chrono::milliseconds Duration; in main() 26 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 30 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main() 35 constexpr std::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 39 constexpr std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main()
|
D | convert.pass.cpp | 24 typedef std::chrono::system_clock Clock; in main() 25 typedef std::chrono::microseconds Duration1; in main() 26 typedef std::chrono::milliseconds Duration2; in main() 28 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 29 std::chrono::time_point<Clock, Duration1> t1 = t2; in main() 34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 35 constexpr std::chrono::time_point<Clock, Duration1> t1 = t2; in main()
|