diff options
Diffstat (limited to 'net/base/net_log_unittest.h')
-rw-r--r-- | net/base/net_log_unittest.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/net/base/net_log_unittest.h b/net/base/net_log_unittest.h index 9c7a42d..a013f23 100644 --- a/net/base/net_log_unittest.h +++ b/net/base/net_log_unittest.h @@ -106,7 +106,7 @@ inline ::testing::AssertionResult LogContainsEntryWithType( // Expect that the log contains an event, but don't care about where -// as long as the first index where it is found is at least |min_index|. +// as long as the index where it is found is greater than min_index. // Returns the position where the event was found. inline size_t ExpectLogContainsSomewhere( const CapturingNetLog::EntryList& entries, @@ -125,25 +125,6 @@ inline size_t ExpectLogContainsSomewhere( return i; } -// Expect that the log contains an event, but don't care about where -// as long as one index where it is found is at least |min_index|. -// Returns the first such position where the event was found. -inline size_t ExpectLogContainsSomewhereAfter( - const CapturingNetLog::EntryList& entries, - size_t min_index, - NetLog::EventType expected_event, - NetLog::EventPhase expected_phase) { - size_t i = min_index; - for (; i < entries.size(); ++i) { - const CapturingNetLog::Entry& entry = entries[i]; - if (entry.type == expected_event && - entry.phase == expected_phase) - break; - } - EXPECT_LT(i, entries.size()); - return i; -} - } // namespace net #endif // NET_BASE_NET_LOG_UNITTEST_H_ |