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

Side by Side Diff: components/component_updater/test/update_checker_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 PathService::Get(base::DIR_SOURCE_ROOT, &path); 31 PathService::Get(base::DIR_SOURCE_ROOT, &path);
32 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data") 32 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data")
33 .AppendASCII("component_updater").AppendASCII(file); 33 .AppendASCII("component_updater").AppendASCII(file);
34 } 34 }
35 35
36 } // namespace 36 } // namespace
37 37
38 class UpdateCheckerTest : public testing::Test { 38 class UpdateCheckerTest : public testing::Test {
39 public: 39 public:
40 UpdateCheckerTest(); 40 UpdateCheckerTest();
41 virtual ~UpdateCheckerTest(); 41 ~UpdateCheckerTest() override;
42 42
43 // Overrides from testing::Test. 43 // Overrides from testing::Test.
44 virtual void SetUp() override; 44 void SetUp() override;
45 virtual void TearDown() override; 45 void TearDown() override;
46 46
47 void UpdateCheckComplete(const GURL& original_url, 47 void UpdateCheckComplete(const GURL& original_url,
48 int error, 48 int error,
49 const std::string& error_message, 49 const std::string& error_message,
50 const UpdateResponse::Results& results); 50 const UpdateResponse::Results& results);
51 51
52 protected: 52 protected:
53 void Quit(); 53 void Quit();
54 void RunThreads(); 54 void RunThreads();
55 void RunThreadsUntilIdle(); 55 void RunThreadsUntilIdle();
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 EXPECT_EQ(1, post_interceptor_->GetCount()) 231 EXPECT_EQ(1, post_interceptor_->GetCount())
232 << post_interceptor_->GetRequestsAsString(); 232 << post_interceptor_->GetRequestsAsString();
233 233
234 EXPECT_EQ(config_->UpdateUrl().front(), original_url_); 234 EXPECT_EQ(config_->UpdateUrl().front(), original_url_);
235 EXPECT_EQ(403, error_); 235 EXPECT_EQ(403, error_);
236 EXPECT_STREQ("network error", error_message_.c_str()); 236 EXPECT_STREQ("network error", error_message_.c_str());
237 EXPECT_EQ(0ul, results_.list.size()); 237 EXPECT_EQ(0ul, results_.list.size());
238 } 238 }
239 239
240 } // namespace component_updater 240 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698