Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: net/base/load_log_unittest.h

Issue 165404: Implement LoadLog, and hook up HostResolverImpl to LoadLog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Do an unsigned/signed thing for GCC compile Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/load_log_event_type_list.h ('k') | net/base/load_log_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW
« no previous file with comments | « net/base/load_log_event_type_list.h ('k') | net/base/load_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698