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

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

Issue 3035062: Revert 55400 - Cleanup in base. This moves the implementation (and a bunch of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « media/omx/run_all_unittests.cc ('k') | net/base/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_BASE_NET_TEST_SUITE_H_ 5 #ifndef NET_BASE_NET_TEST_SUITE_H_
6 #define NET_BASE_NET_TEST_SUITE_H_ 6 #define NET_BASE_NET_TEST_SUITE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "base/test/test_suite.h" 11 #include "base/test/test_suite.h"
12 #include "net/base/mock_host_resolver.h" 12 #include "net/base/mock_host_resolver.h"
13 13
14 class NetTestSuite : public base::TestSuite { 14 class NetTestSuite : public TestSuite {
15 public: 15 public:
16 NetTestSuite(int argc, char** argv) : TestSuite(argc, argv) { 16 NetTestSuite(int argc, char** argv) : TestSuite(argc, argv) {
17 } 17 }
18 18
19 virtual void Initialize() { 19 virtual void Initialize() {
20 TestSuite::Initialize(); 20 TestSuite::Initialize();
21 InitializeTestThread(); 21 InitializeTestThread();
22 } 22 }
23 23
24 // Called from within Initialize(), but separate so that derived classes 24 // Called from within Initialize(), but separate so that derived classes
(...skipping 22 matching lines...) Expand all
47 } 47 }
48 48
49 private: 49 private:
50 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 50 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
51 scoped_ptr<MessageLoop> message_loop_; 51 scoped_ptr<MessageLoop> message_loop_;
52 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_proc_; 52 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_proc_;
53 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_; 53 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_;
54 }; 54 };
55 55
56 #endif // NET_BASE_NET_TEST_SUITE_H_ 56 #endif // NET_BASE_NET_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « media/omx/run_all_unittests.cc ('k') | net/base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698