OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |