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

Side by Side Diff: chrome/browser/net/network_stats_unittest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "chrome/browser/net/network_stats.h" 8 #include "chrome/browser/net/network_stats.h"
9 #include "net/base/host_resolver.h"
10 #include "net/base/mock_host_resolver.h"
11 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
12 #include "net/base/test_completion_callback.h" 10 #include "net/base/test_completion_callback.h"
11 #include "net/dns/host_resolver.h"
12 #include "net/dns/mock_host_resolver.h"
13 #include "net/test/test_server.h" 13 #include "net/test/test_server.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 15 #include "testing/platform_test.h"
16 16
17 namespace chrome_browser_net { 17 namespace chrome_browser_net {
18 18
19 class NetworkStatsTest : public PlatformTest { 19 class NetworkStatsTest : public PlatformTest {
20 public: 20 public:
21 NetworkStatsTest() {} 21 NetworkStatsTest() {}
22 protected: 22 protected:
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 network_stats.Crypt( 407 network_stats.Crypt(
408 key, key_string.length(), payload_data, KBytesToSend, encoded_data); 408 key, key_string.length(), payload_data, KBytesToSend, encoded_data);
409 std::string encoded_payload(encoded_data, KBytesToSend); 409 std::string encoded_payload(encoded_data, KBytesToSend);
410 410
411 message = version + checksum + payload_size + key_string + encoded_payload; 411 message = version + checksum + payload_size + key_string + encoded_payload;
412 EXPECT_EQ(NetworkStats::SUCCESS, network_stats.VerifyBytes(message)); 412 EXPECT_EQ(NetworkStats::SUCCESS, network_stats.VerifyBytes(message));
413 EXPECT_EQ(1u, network_stats.packets_received_mask()); 413 EXPECT_EQ(1u, network_stats.packets_received_mask());
414 } 414 }
415 415
416 } // namespace chrome_browser_net 416 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/network_stats.h ('k') | chrome/browser/net/predictor.cc » ('j') | webkit/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698