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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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
« no previous file with comments | « net/test/embedded_test_server/http_response.h ('k') | net/test/net_test_suite.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_NET_TEST_SUITE_H_ 5 #ifndef NET_TEST_NET_TEST_SUITE_H_
6 #define NET_TEST_NET_TEST_SUITE_H_ 6 #define NET_TEST_NET_TEST_SUITE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/test/test_suite.h" 9 #include "base/test/test_suite.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "net/dns/mock_host_resolver.h" 11 #include "net/dns/mock_host_resolver.h"
12 12
13 namespace base { 13 namespace base {
14 class MessageLoop; 14 class MessageLoop;
15 } 15 }
16 16
17 namespace net { 17 namespace net {
18 class NetworkChangeNotifier; 18 class NetworkChangeNotifier;
19 } 19 }
20 20
21 class NetTestSuite : public base::TestSuite { 21 class NetTestSuite : public base::TestSuite {
22 public: 22 public:
23 NetTestSuite(int argc, char** argv); 23 NetTestSuite(int argc, char** argv);
24 virtual ~NetTestSuite(); 24 virtual ~NetTestSuite();
25 25
26 virtual void Initialize() OVERRIDE; 26 virtual void Initialize() override;
27 27
28 virtual void Shutdown() OVERRIDE; 28 virtual void Shutdown() override;
29 29
30 protected: 30 protected:
31 // This constructor is only accessible to specialized net test 31 // This constructor is only accessible to specialized net test
32 // implementations which need to control the creation of an AtExitManager 32 // implementations which need to control the creation of an AtExitManager
33 // instance for the duration of the test. 33 // instance for the duration of the test.
34 NetTestSuite(int argc, char** argv, bool create_at_exit_manager); 34 NetTestSuite(int argc, char** argv, bool create_at_exit_manager);
35 35
36 // Called from within Initialize(), but separate so that derived classes 36 // Called from within Initialize(), but separate so that derived classes
37 // can initialize the NetTestSuite instance only and not 37 // can initialize the NetTestSuite instance only and not
38 // TestSuite::Initialize(). TestSuite::Initialize() performs some global 38 // TestSuite::Initialize(). TestSuite::Initialize() performs some global
39 // initialization that can only be done once. 39 // initialization that can only be done once.
40 void InitializeTestThread(); 40 void InitializeTestThread();
41 41
42 // Same as above, except it does not create a mock 42 // Same as above, except it does not create a mock
43 // NetworkChangeNotifier. Use this if your test needs to create and 43 // NetworkChangeNotifier. Use this if your test needs to create and
44 // manage its own mock NetworkChangeNotifier, or if your test uses 44 // manage its own mock NetworkChangeNotifier, or if your test uses
45 // the production NetworkChangeNotifier. 45 // the production NetworkChangeNotifier.
46 void InitializeTestThreadNoNetworkChangeNotifier(); 46 void InitializeTestThreadNoNetworkChangeNotifier();
47 47
48 private: 48 private:
49 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 49 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
50 scoped_ptr<base::MessageLoop> message_loop_; 50 scoped_ptr<base::MessageLoop> message_loop_;
51 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_proc_; 51 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_proc_;
52 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_; 52 net::ScopedDefaultHostResolverProc scoped_host_resolver_proc_;
53 }; 53 };
54 54
55 #endif // NET_TEST_NET_TEST_SUITE_H_ 55 #endif // NET_TEST_NET_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « net/test/embedded_test_server/http_response.h ('k') | net/test/net_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698