OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/tests/test_trace_event.h" | 5 #include "ppapi/tests/test_trace_event.h" |
6 | 6 |
7 #include "ppapi/cpp/module.h" | 7 #include "ppapi/cpp/module.h" |
8 #include "ppapi/tests/testing_instance.h" | 8 #include "ppapi/tests/testing_instance.h" |
9 | 9 |
10 REGISTER_TEST_CASE(TraceEvent); | 10 REGISTER_TEST_CASE(TraceEvent); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::string TestTraceEvent::TestClock() { | 55 std::string TestTraceEvent::TestClock() { |
56 int64_t last = interface_->Now(); | 56 int64_t last = interface_->Now(); |
57 | 57 |
58 for(int i=0; i<5; ++i){ | 58 for(int i=0; i<5; ++i){ |
59 int64_t next = interface_->Now(); | 59 int64_t next = interface_->Now(); |
60 ASSERT_LE(last, next); | 60 ASSERT_LE(last, next); |
61 last = next; | 61 last = next; |
62 } | 62 } |
63 | 63 |
64 PASS(); | 64 PASS(); |
65 } | 65 } |
OLD | NEW |