| 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 <stdint.h> |
| 8 |
| 7 #include "ppapi/cpp/module.h" | 9 #include "ppapi/cpp/module.h" |
| 8 #include "ppapi/tests/testing_instance.h" | 10 #include "ppapi/tests/testing_instance.h" |
| 9 | 11 |
| 10 REGISTER_TEST_CASE(TraceEvent); | 12 REGISTER_TEST_CASE(TraceEvent); |
| 11 | 13 |
| 12 TestTraceEvent::TestTraceEvent(TestingInstance* instance) | 14 TestTraceEvent::TestTraceEvent(TestingInstance* instance) |
| 13 : TestCase(instance), | 15 : TestCase(instance), |
| 14 interface_(NULL) { | 16 interface_(NULL) { |
| 15 } | 17 } |
| 16 | 18 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 int64_t last = interface_->Now(); | 58 int64_t last = interface_->Now(); |
| 57 | 59 |
| 58 for(int i=0; i<5; ++i){ | 60 for(int i=0; i<5; ++i){ |
| 59 int64_t next = interface_->Now(); | 61 int64_t next = interface_->Now(); |
| 60 ASSERT_LE(last, next); | 62 ASSERT_LE(last, next); |
| 61 last = next; | 63 last = next; |
| 62 } | 64 } |
| 63 | 65 |
| 64 PASS(); | 66 PASS(); |
| 65 } | 67 } |
| OLD | NEW |