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

Side by Side Diff: chrome/browser/net/network_stats_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string>
6
5 #include "base/basictypes.h" 7 #include "base/basictypes.h"
6 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
7 #include "chrome/browser/net/network_stats.h" 9 #include "chrome/browser/net/network_stats.h"
8 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
9 #include "net/base/network_change_notifier.h" 11 #include "net/base/network_change_notifier.h"
10 #include "net/base/test_completion_callback.h" 12 #include "net/base/test_completion_callback.h"
11 #include "net/dns/host_resolver.h" 13 #include "net/dns/host_resolver.h"
12 #include "net/dns/mock_host_resolver.h" 14 #include "net/dns/mock_host_resolver.h"
13 #include "net/socket/socket_test_util.h" 15 #include "net/socket/socket_test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 17 #include "testing/platform_test.h"
16 18
19 using std::string;
20
17 namespace chrome_browser_net { 21 namespace chrome_browser_net {
18 22
19 class NetworkStatsTest : public PlatformTest { 23 class NetworkStatsTest : public PlatformTest {
20 public: 24 public:
21 NetworkStatsTest() {} 25 NetworkStatsTest() {}
22 26
23 protected: 27 protected:
24 void SetUp() override { 28 void SetUp() override {
25 net::NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests(); 29 net::NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests();
26 base::MessageLoop::current()->RunUntilIdle(); 30 base::MessageLoop::current()->RunUntilIdle();
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 TestStartOneTest( 403 TestStartOneTest(
400 false, NetworkStats::PACKET_SIZE_TEST, 1500, 0, 1, net::SYNCHRONOUS); 404 false, NetworkStats::PACKET_SIZE_TEST, 1500, 0, 1, net::SYNCHRONOUS);
401 } 405 }
402 406
403 TEST_F(NetworkStatsTest, StartPacketSizeTest1500BHasNoProxy) { 407 TEST_F(NetworkStatsTest, StartPacketSizeTest1500BHasNoProxy) {
404 TestStartOneTest( 408 TestStartOneTest(
405 false, NetworkStats::PACKET_SIZE_TEST, 1500, 0, 1, net::ASYNC); 409 false, NetworkStats::PACKET_SIZE_TEST, 1500, 0, 1, net::ASYNC);
406 } 410 }
407 411
408 } // namespace chrome_browser_net 412 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698