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 COMPONENTS_UPDATE_CLIENT_TEST_TEST_INSTALLER_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_TEST_TEST_INSTALLER_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_TEST_TEST_INSTALLER_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_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 13 matching lines...) Expand all Loading... |
24 TestInstaller(); | 24 TestInstaller(); |
25 | 25 |
26 void OnUpdateError(int error) override; | 26 void OnUpdateError(int error) override; |
27 | 27 |
28 bool Install(const base::DictionaryValue& manifest, | 28 bool Install(const base::DictionaryValue& manifest, |
29 const base::FilePath& unpack_path) override; | 29 const base::FilePath& unpack_path) override; |
30 | 30 |
31 bool GetInstalledFile(const std::string& file, | 31 bool GetInstalledFile(const std::string& file, |
32 base::FilePath* installed_file) override; | 32 base::FilePath* installed_file) override; |
33 | 33 |
| 34 bool Uninstall() override; |
| 35 |
34 int error() const { | 36 int error() const { |
35 return error_; | 37 return error_; |
36 } | 38 } |
37 | 39 |
38 int install_count() const { | 40 int install_count() const { |
39 return install_count_; | 41 return install_count_; |
40 } | 42 } |
41 | 43 |
42 protected: | 44 protected: |
43 ~TestInstaller() override; | 45 ~TestInstaller() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 private: | 78 private: |
77 ~VersionedTestInstaller() override; | 79 ~VersionedTestInstaller() override; |
78 | 80 |
79 base::FilePath install_directory_; | 81 base::FilePath install_directory_; |
80 Version current_version_; | 82 Version current_version_; |
81 }; | 83 }; |
82 | 84 |
83 } // namespace update_client | 85 } // namespace update_client |
84 | 86 |
85 #endif // COMPONENTS_UPDATE_CLIENT_TEST_TEST_INSTALLER_H_ | 87 #endif // COMPONENTS_UPDATE_CLIENT_TEST_TEST_INSTALLER_H_ |
OLD | NEW |