| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include <iterator> | 5 #include <iterator> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const base::FilePath& dir) const override { | 75 const base::FilePath& dir) const override { |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool SupportsGroupPolicyEnabledComponentUpdates() const override { | 79 bool SupportsGroupPolicyEnabledComponentUpdates() const override { |
| 80 return true; | 80 return true; |
| 81 } | 81 } |
| 82 | 82 |
| 83 bool RequiresNetworkEncryption() const override { return true; } | 83 bool RequiresNetworkEncryption() const override { return true; } |
| 84 | 84 |
| 85 bool OnCustomInstall(const base::DictionaryValue& manifest, | 85 update_client::CrxInstaller::Result OnCustomInstall( |
| 86 const base::FilePath& install_dir) override { | 86 const base::DictionaryValue& manifest, |
| 87 return true; | 87 const base::FilePath& install_dir) override { |
| 88 return update_client::CrxInstaller::Result(0); |
| 88 } | 89 } |
| 89 | 90 |
| 90 void ComponentReady( | 91 void ComponentReady( |
| 91 const base::Version& version, | 92 const base::Version& version, |
| 92 const base::FilePath& install_dir, | 93 const base::FilePath& install_dir, |
| 93 std::unique_ptr<base::DictionaryValue> manifest) override {} | 94 std::unique_ptr<base::DictionaryValue> manifest) override {} |
| 94 | 95 |
| 95 base::FilePath GetRelativeInstallDir() const override { | 96 base::FilePath GetRelativeInstallDir() const override { |
| 96 return base::FilePath(FILE_PATH_LITERAL("fake")); | 97 return base::FilePath(FILE_PATH_LITERAL("fake")); |
| 97 } | 98 } |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 component.pk_hash); | 228 component.pk_hash); |
| 228 EXPECT_EQ(base::Version("0.0.0.0"), component.version); | 229 EXPECT_EQ(base::Version("0.0.0.0"), component.version); |
| 229 EXPECT_TRUE(component.fingerprint.empty()); | 230 EXPECT_TRUE(component.fingerprint.empty()); |
| 230 EXPECT_STREQ("fake name", component.name.c_str()); | 231 EXPECT_STREQ("fake name", component.name.c_str()); |
| 231 EXPECT_EQ(expected_attrs, component.installer_attributes); | 232 EXPECT_EQ(expected_attrs, component.installer_attributes); |
| 232 EXPECT_TRUE(component.requires_network_encryption); | 233 EXPECT_TRUE(component.requires_network_encryption); |
| 233 EXPECT_TRUE(component.supports_group_policy_enable_component_updates); | 234 EXPECT_TRUE(component.supports_group_policy_enable_component_updates); |
| 234 } | 235 } |
| 235 | 236 |
| 236 } // namespace component_updater | 237 } // namespace component_updater |
| OLD | NEW |