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

Side by Side Diff: chrome/browser/extensions/zipfile_installer_unittest.cc

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/browser/extensions/zipfile_installer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 29 matching lines...) Expand all
40 new content::MessageLoopRunner; 40 new content::MessageLoopRunner;
41 quit_closure_ = runner->QuitClosure(); 41 quit_closure_ = runner->QuitClosure();
42 runner->Run(); 42 runner->Run();
43 } 43 }
44 44
45 virtual void OnExtensionWillBeInstalled( 45 virtual void OnExtensionWillBeInstalled(
46 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
47 const Extension* extension, 47 const Extension* extension,
48 bool is_update, 48 bool is_update,
49 bool from_ephemeral, 49 bool from_ephemeral,
50 const std::string& old_name) OVERRIDE { 50 const std::string& old_name) override {
51 last_extension_installed = extension->id(); 51 last_extension_installed = extension->id();
52 quit_closure_.Run(); 52 quit_closure_.Run();
53 } 53 }
54 54
55 std::string last_extension_installed; 55 std::string last_extension_installed;
56 base::Closure quit_closure_; 56 base::Closure quit_closure_;
57 }; 57 };
58 58
59 } // namespace 59 } // namespace
60 60
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 RunInstaller("good.zip"); 128 RunInstaller("good.zip");
129 } 129 }
130 130
131 TEST_F(ZipFileInstallerTest, ZipWithPublicKey) { 131 TEST_F(ZipFileInstallerTest, ZipWithPublicKey) {
132 RunInstaller("public_key.zip"); 132 RunInstaller("public_key.zip");
133 const char kIdForPublicKey[] = "ikppjpenhoddphklkpdfdfdabbakkpal"; 133 const char kIdForPublicKey[] = "ikppjpenhoddphklkpdfdfdabbakkpal";
134 EXPECT_EQ(observer_.last_extension_installed, kIdForPublicKey); 134 EXPECT_EQ(observer_.last_extension_installed, kIdForPublicKey);
135 } 135 }
136 136
137 } // namespace extensions 137 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/zipfile_installer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698