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