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

Side by Side Diff: components/component_updater/test/component_updater_ping_manager_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/version.h" 8 #include "base/version.h"
9 #include "components/component_updater/component_updater_ping_manager.h" 9 #include "components/component_updater/component_updater_ping_manager.h"
10 #include "components/component_updater/crx_update_item.h" 10 #include "components/component_updater/crx_update_item.h"
11 #include "components/component_updater/test/test_configurator.h" 11 #include "components/component_updater/test/test_configurator.h"
12 #include "components/component_updater/test/url_request_post_interceptor.h" 12 #include "components/component_updater/test/url_request_post_interceptor.h"
13 #include "net/url_request/url_request_test_util.h" 13 #include "net/url_request/url_request_test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace component_updater { 16 namespace component_updater {
17 17
18 class ComponentUpdaterPingManagerTest : public testing::Test { 18 class ComponentUpdaterPingManagerTest : public testing::Test {
19 public: 19 public:
20 ComponentUpdaterPingManagerTest(); 20 ComponentUpdaterPingManagerTest();
21 virtual ~ComponentUpdaterPingManagerTest() {} 21 ~ComponentUpdaterPingManagerTest() override {}
22 22
23 void RunThreadsUntilIdle(); 23 void RunThreadsUntilIdle();
24 24
25 // Overrides from testing::Test. 25 // Overrides from testing::Test.
26 virtual void SetUp() override; 26 void SetUp() override;
27 virtual void TearDown() override; 27 void TearDown() override;
28 28
29 protected: 29 protected:
30 scoped_ptr<TestConfigurator> config_; 30 scoped_ptr<TestConfigurator> config_;
31 scoped_ptr<PingManager> ping_manager_; 31 scoped_ptr<PingManager> ping_manager_;
32 32
33 private: 33 private:
34 base::MessageLoopForIO loop_; 34 base::MessageLoopForIO loop_;
35 }; 35 };
36 36
37 ComponentUpdaterPingManagerTest::ComponentUpdaterPingManagerTest() 37 ComponentUpdaterPingManagerTest::ComponentUpdaterPingManagerTest()
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" " 166 "errorcode=\"-1\" url=\"http://host1/path1\" downloaded=\"123\" "
167 "total=\"456\" download_time_ms=\"987\"/>" 167 "total=\"456\" download_time_ms=\"987\"/>"
168 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" " 168 "<event eventtype=\"14\" eventresult=\"1\" downloader=\"bits\" "
169 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" " 169 "url=\"http://host2/path2\" downloaded=\"1230\" total=\"4560\" "
170 "download_time_ms=\"9870\"/></app>")) 170 "download_time_ms=\"9870\"/></app>"))
171 << interceptor->GetRequestsAsString(); 171 << interceptor->GetRequestsAsString();
172 interceptor->Reset(); 172 interceptor->Reset();
173 } 173 }
174 174
175 } // namespace component_updater 175 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698