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

Side by Side Diff: chrome/browser/component_updater/test/test_installer.h

Issue 321473003: Elevated install of recovery component (component update part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 // increment a counter. 21 // increment a counter.
22 class TestInstaller : public ComponentInstaller { 22 class TestInstaller : public ComponentInstaller {
23 public: 23 public:
24 explicit TestInstaller(); 24 explicit TestInstaller();
25 25
26 virtual void OnUpdateError(int error) OVERRIDE; 26 virtual void OnUpdateError(int error) OVERRIDE;
27 27
28 virtual bool Install(const base::DictionaryValue& manifest, 28 virtual bool Install(const base::DictionaryValue& manifest,
29 const base::FilePath& unpack_path) OVERRIDE; 29 const base::FilePath& unpack_path) OVERRIDE;
30 30
31 virtual base::FilePath GetBackupPath() const OVERRIDE;
32
33 virtual void InstallExternally() OVERRIDE;
34
31 virtual bool GetInstalledFile(const std::string& file, 35 virtual bool GetInstalledFile(const std::string& file,
32 base::FilePath* installed_file) OVERRIDE; 36 base::FilePath* installed_file) OVERRIDE;
33 37
34 int error() const; 38 int error() const;
35 39
36 int install_count() const; 40 int install_count() const;
37 41
38 protected: 42 protected:
39 int error_; 43 int error_;
40 int install_count_; 44 int install_count_;
(...skipping 29 matching lines...) Expand all
70 base::FilePath* installed_file) OVERRIDE; 74 base::FilePath* installed_file) OVERRIDE;
71 75
72 private: 76 private:
73 base::FilePath install_directory_; 77 base::FilePath install_directory_;
74 Version current_version_; 78 Version current_version_;
75 }; 79 };
76 80
77 } // namespace component_updater 81 } // namespace component_updater
78 82
79 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_ 83 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698