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

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: resolve ramant's comment, using std:: for .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 <string>
ramant (doing other things) 2014/12/03 01:10:09 disk_cache_based_quic_server_info.h is including s
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
11 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
12 #include "net/http/mock_http_cache.h" 14 #include "net/http/mock_http_cache.h"
13 #include "net/quic/crypto/quic_server_info.h" 15 #include "net/quic/crypto/quic_server_info.h"
14 #include "net/quic/quic_server_id.h" 16 #include "net/quic/quic_server_id.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
19 using std::string;
20
17 namespace net { 21 namespace net {
18 namespace { 22 namespace {
19 23
20 // This is an empty transaction, needed to register the URL and the test mode. 24 // This is an empty transaction, needed to register the URL and the test mode.
21 const MockTransaction kHostInfoTransaction1 = { 25 const MockTransaction kHostInfoTransaction1 = {
22 "quicserverinfo:https://www.google.com:443", 26 "quicserverinfo:https://www.google.com:443",
23 "", 27 "",
24 base::Time(), 28 base::Time(),
25 "", 29 "",
26 LOAD_NORMAL, 30 LOAD_NORMAL,
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 EXPECT_EQ(server_config_a, state1.server_config); 580 EXPECT_EQ(server_config_a, state1.server_config);
577 EXPECT_EQ(source_address_token_a, state1.source_address_token); 581 EXPECT_EQ(source_address_token_a, state1.source_address_token);
578 EXPECT_EQ(server_config_sig_a, state1.server_config_sig); 582 EXPECT_EQ(server_config_sig_a, state1.server_config_sig);
579 EXPECT_EQ(1U, state1.certs.size()); 583 EXPECT_EQ(1U, state1.certs.size());
580 EXPECT_EQ(cert_a, state1.certs[0]); 584 EXPECT_EQ(cert_a, state1.certs[0]);
581 585
582 RemoveMockTransaction(&kHostInfoTransaction1); 586 RemoveMockTransaction(&kHostInfoTransaction1);
583 } 587 }
584 588
585 } // namespace net 589 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698