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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/base/load_timing_info.cc ('k') | net/base/load_timing_info_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_TIMING_INFO_TEST_UTIL_H_
6 #define NET_BASE_LOAD_TIMING_INFO_TEST_UTIL_H_
7
8 #include "net/base/load_timing_info.h"
9
10 namespace net {
11
12 // Flags indicating which times in a LoadTimingInfo::ConnectTiming struct should
13 // be non-null.
14 enum ConnectTimeFlags {
15 CONNECT_TIMING_HAS_CONNECT_TIMES_ONLY = 0,
16 CONNECT_TIMING_HAS_DNS_TIMES = 1 << 0,
17 CONNECT_TIMING_HAS_SSL_TIMES = 1 << 1,
18 };
19
20 // Checks that all times in |connect_timing| are null.
21 void ExpectConnectTimingHasNoTimes(
22 const LoadTimingInfo::ConnectTiming& connect_timing);
23
24 // Checks that |connect_timing|'s times are in the correct order.
25 // |connect_start| and |connect_end| must be non-null. Checks null state and
26 // order of DNS times and SSL times based on |flags|, which must be a
27 // combination of ConnectTimeFlags.
28 void ExpectConnectTimingHasTimes(
29 const LoadTimingInfo::ConnectTiming& connect_timing,
30 int connect_timing_flags);
31
32 // Tests that all non-connection establishment times in |load_timing_info| are
33 // null. Its |connect_timing| field is ignored.
34 void ExpectLoadTimingHasOnlyConnectionTimes(
35 const LoadTimingInfo& load_timing_info);
36
37 } // namespace net
38
39 #endif // NET_BASE_LOAD_TIMING_INFO_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/base/load_timing_info.cc ('k') | net/base/load_timing_info_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698