| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_BASE_LOAD_LOG_UNITTEST_H_ |
| 6 #define NET_BASE_LOAD_LOG_UNITTEST_H_ |
| 7 |
| 8 #include "net/base/load_log.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 // Create a timestamp with internal value of |t| milliseconds from the epoch. |
| 13 base::TimeTicks MakeTime(int t); |
| 14 |
| 15 // Call gtest's EXPECT_* to verify that |log| contains the specified entry |
| 16 // at index |i|. |
| 17 void ExpectLogContains(const LoadLog* log, |
| 18 size_t i, |
| 19 base::TimeTicks expected_time, |
| 20 LoadLog::EventType expected_event, |
| 21 LoadLog::EventPhase expected_phase); |
| 22 |
| 23 // Same as above, but without an expectation for the timestamp. |
| 24 void ExpectLogContains(const LoadLog* log, |
| 25 size_t i, |
| 26 LoadLog::EventType expected_event, |
| 27 LoadLog::EventPhase expected_phase); |
| 28 |
| 29 } // namespace net |
| 30 |
| 31 #endif // NET_BASE_LOAD_LOG_UNITTEST_H_ |
| OLD | NEW |