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

Side by Side Diff: chrome/browser/drive/drive_app_registry_unittest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 "chrome/browser/drive/drive_app_registry.h" 5 #include "chrome/browser/drive/drive_app_registry.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 22 matching lines...) Expand all
33 // DriveAppRegistryObserver overrides: 33 // DriveAppRegistryObserver overrides:
34 void OnDriveAppRegistryUpdated() override { ++update_count_; } 34 void OnDriveAppRegistryUpdated() override { ++update_count_; }
35 35
36 DriveAppRegistry* registry_; 36 DriveAppRegistry* registry_;
37 int update_count_; 37 int update_count_;
38 DISALLOW_COPY_AND_ASSIGN(TestDriveAppRegistryObserver); 38 DISALLOW_COPY_AND_ASSIGN(TestDriveAppRegistryObserver);
39 }; 39 };
40 40
41 class DriveAppRegistryTest : public testing::Test { 41 class DriveAppRegistryTest : public testing::Test {
42 protected: 42 protected:
43 virtual void SetUp() override { 43 void SetUp() override {
44 fake_drive_service_.reset(new FakeDriveService); 44 fake_drive_service_.reset(new FakeDriveService);
45 fake_drive_service_->LoadAppListForDriveApi("drive/applist.json"); 45 fake_drive_service_->LoadAppListForDriveApi("drive/applist.json");
46 46
47 apps_registry_.reset(new DriveAppRegistry(fake_drive_service_.get())); 47 apps_registry_.reset(new DriveAppRegistry(fake_drive_service_.get()));
48 } 48 }
49 49
50 bool VerifyApp(const std::vector<DriveAppInfo>& list, 50 bool VerifyApp(const std::vector<DriveAppInfo>& list,
51 const std::string& app_id, 51 const std::string& app_id,
52 const std::string& app_name) { 52 const std::string& app_name) {
53 bool found = false; 53 bool found = false;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 google_apis::test_util::CreateCopyResultCallback(&error)); 216 google_apis::test_util::CreateCopyResultCallback(&error));
217 base::RunLoop().RunUntilIdle(); 217 base::RunLoop().RunUntilIdle();
218 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND); 218 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND);
219 219
220 // Check that the number is not changed this time. 220 // Check that the number is not changed this time.
221 apps_registry_->GetAppList(&apps); 221 apps_registry_->GetAppList(&apps);
222 EXPECT_EQ(original_count - 1, apps.size()); 222 EXPECT_EQ(original_count - 1, apps.size());
223 } 223 }
224 224
225 } // namespace drive 225 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698