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

Side by Side Diff: net/http/disk_cache_based_quic_server_info_unittest.cc

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix missing part device_cloud_policy_manager_chromeos_unittest.cc Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/http/disk_cache_based_quic_server_info.h" 5 #include "net/http/disk_cache_based_quic_server_info.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/http/mock_http_cache.h" 12 #include "net/http/mock_http_cache.h"
13 #include "net/quic/crypto/quic_server_info.h" 13 #include "net/quic/crypto/quic_server_info.h"
14 #include "net/quic/quic_server_id.h" 14 #include "net/quic/quic_server_id.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using std::string;
18
17 namespace net { 19 namespace net {
18 namespace { 20 namespace {
19 21
20 // This is an empty transaction, needed to register the URL and the test mode. 22 // This is an empty transaction, needed to register the URL and the test mode.
21 const MockTransaction kHostInfoTransaction1 = { 23 const MockTransaction kHostInfoTransaction1 = {
22 "quicserverinfo:https://www.google.com:443", 24 "quicserverinfo:https://www.google.com:443",
23 "", 25 "",
24 base::Time(), 26 base::Time(),
25 "", 27 "",
26 LOAD_NORMAL, 28 LOAD_NORMAL,
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 EXPECT_EQ(server_config_a, state1.server_config); 578 EXPECT_EQ(server_config_a, state1.server_config);
577 EXPECT_EQ(source_address_token_a, state1.source_address_token); 579 EXPECT_EQ(source_address_token_a, state1.source_address_token);
578 EXPECT_EQ(server_config_sig_a, state1.server_config_sig); 580 EXPECT_EQ(server_config_sig_a, state1.server_config_sig);
579 EXPECT_EQ(1U, state1.certs.size()); 581 EXPECT_EQ(1U, state1.certs.size());
580 EXPECT_EQ(cert_a, state1.certs[0]); 582 EXPECT_EQ(cert_a, state1.certs[0]);
581 583
582 RemoveMockTransaction(&kHostInfoTransaction1); 584 RemoveMockTransaction(&kHostInfoTransaction1);
583 } 585 }
584 586
585 } // namespace net 587 } // namespace net
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests_unittest.cc ('k') | net/quic/congestion_control/send_algorithm_simulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698