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

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: Initial upload Created 6 years, 6 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 void OnInstallError(
32 const InstallerSourceSerializer& serializer) OVERRIDE;
33
31 virtual bool GetInstalledFile(const std::string& file, 34 virtual bool GetInstalledFile(const std::string& file,
32 base::FilePath* installed_file) OVERRIDE; 35 base::FilePath* installed_file) OVERRIDE;
33 36
34 int error() const; 37 int error() const;
35 38
36 int install_count() const; 39 int install_count() const;
37 40
38 protected: 41 protected:
39 int error_; 42 int error_;
40 int install_count_; 43 int install_count_;
(...skipping 29 matching lines...) Expand all
70 base::FilePath* installed_file) OVERRIDE; 73 base::FilePath* installed_file) OVERRIDE;
71 74
72 private: 75 private:
73 base::FilePath install_directory_; 76 base::FilePath install_directory_;
74 Version current_version_; 77 Version current_version_;
75 }; 78 };
76 79
77 } // namespace component_updater 80 } // namespace component_updater
78 81
79 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_ 82 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698