OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |