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

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

Issue 138553004: Move component updater artifacts into component_updater namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "chrome/browser/component_updater/component_updater_service.h" 10 #include "chrome/browser/component_updater/component_updater_service.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace component_updater {
17
16 // A TestInstaller is an installer that does nothing for installation except 18 // A TestInstaller is an installer that does nothing for installation except
17 // increment a counter. 19 // increment a counter.
18 class TestInstaller : public ComponentInstaller { 20 class TestInstaller : public ComponentInstaller {
19 public: 21 public:
20 explicit TestInstaller(); 22 explicit TestInstaller();
21 23
22 virtual void OnUpdateError(int error) OVERRIDE; 24 virtual void OnUpdateError(int error) OVERRIDE;
23 25
24 virtual bool Install(const base::DictionaryValue& manifest, 26 virtual bool Install(const base::DictionaryValue& manifest,
25 const base::FilePath& unpack_path) OVERRIDE; 27 const base::FilePath& unpack_path) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const base::FilePath& unpack_path) OVERRIDE; 65 const base::FilePath& unpack_path) OVERRIDE;
64 66
65 virtual bool GetInstalledFile(const std::string& file, 67 virtual bool GetInstalledFile(const std::string& file,
66 base::FilePath* installed_file) OVERRIDE; 68 base::FilePath* installed_file) OVERRIDE;
67 69
68 private: 70 private:
69 base::FilePath install_directory_; 71 base::FilePath install_directory_;
70 Version current_version_; 72 Version current_version_;
71 }; 73 };
72 74
75 } // namespace component_updater
76
73 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_ 77 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698