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

Side by Side Diff: chrome/browser/background/background_application_list_model_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // TODO(rickcam): Bug 73183: Add unit tests for image loading 5 // TODO(rickcam): Bug 73183: Add unit tests for image loading
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 #include <set> 8 #include <set>
9 9
10 #include "chrome/browser/background/background_application_list_model.h" 10 #include "chrome/browser/background/background_application_list_model.h"
(...skipping 29 matching lines...) Expand all
40 // For ExtensionService interface when it requires a path that is not used. 40 // For ExtensionService interface when it requires a path that is not used.
41 base::FilePath bogus_file_pathname(const std::string& name) { 41 base::FilePath bogus_file_pathname(const std::string& name) {
42 return base::FilePath(FILE_PATH_LITERAL("//foobar_nonexistent")) 42 return base::FilePath(FILE_PATH_LITERAL("//foobar_nonexistent"))
43 .AppendASCII(name); 43 .AppendASCII(name);
44 } 44 }
45 45
46 class BackgroundApplicationListModelTest 46 class BackgroundApplicationListModelTest
47 : public extensions::ExtensionServiceTestBase { 47 : public extensions::ExtensionServiceTestBase {
48 public: 48 public:
49 BackgroundApplicationListModelTest() {} 49 BackgroundApplicationListModelTest() {}
50 virtual ~BackgroundApplicationListModelTest() {} 50 ~BackgroundApplicationListModelTest() override {}
51 51
52 protected: 52 protected:
53 void InitializeAndLoadEmptyExtensionService() { 53 void InitializeAndLoadEmptyExtensionService() {
54 InitializeEmptyExtensionService(); 54 InitializeEmptyExtensionService();
55 service_->Init(); /* Sends EXTENSIONS_READY */ 55 service_->Init(); /* Sends EXTENSIONS_READY */
56 } 56 }
57 57
58 bool IsBackgroundApp(const Extension& app) { 58 bool IsBackgroundApp(const Extension& app) {
59 return BackgroundApplicationListModel::IsBackgroundApp(app, 59 return BackgroundApplicationListModel::IsBackgroundApp(app,
60 profile_.get()); 60 profile_.get());
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 break; 583 break;
584 case 2: 584 case 2:
585 TogglePermission(service, &extensions, model.get(), &expected, &count); 585 TogglePermission(service, &extensions, model.get(), &expected, &count);
586 break; 586 break;
587 default: 587 default:
588 NOTREACHED(); 588 NOTREACHED();
589 break; 589 break;
590 } 590 }
591 } 591 }
592 } 592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698