| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void Update(const std::vector<std::string>& ids, | 42 void Update(const std::vector<std::string>& ids, |
| 43 const CrxDataCallback& crx_data_callback, | 43 const CrxDataCallback& crx_data_callback, |
| 44 const CompletionCallback& completion_callback) override; | 44 const CompletionCallback& completion_callback) override; |
| 45 bool GetCrxUpdateState( | 45 bool GetCrxUpdateState( |
| 46 const std::string& id, | 46 const std::string& id, |
| 47 update_client::CrxUpdateItem* update_item) const override { | 47 update_client::CrxUpdateItem* update_item) const override { |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 bool IsUpdating(const std::string& id) const override { return false; } | 50 bool IsUpdating(const std::string& id) const override { return false; } |
| 51 void Stop() override {} | 51 void Stop() override {} |
| 52 void SendUninstallPing(const std::string& id, |
| 53 const Version& version, |
| 54 int reason) {} |
| 52 | 55 |
| 53 protected: | 56 protected: |
| 54 friend class base::RefCounted<FakeUpdateClient>; | 57 friend class base::RefCounted<FakeUpdateClient>; |
| 55 ~FakeUpdateClient() override {} | 58 ~FakeUpdateClient() override {} |
| 56 | 59 |
| 57 std::vector<update_client::CrxComponent> data_; | 60 std::vector<update_client::CrxComponent> data_; |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 FakeUpdateClient::FakeUpdateClient() {} | 63 FakeUpdateClient::FakeUpdateClient() {} |
| 61 | 64 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 std::vector<FakeExtensionSystem::InstallUpdateRequest>* requests = | 245 std::vector<FakeExtensionSystem::InstallUpdateRequest>* requests = |
| 243 extension_system()->install_requests(); | 246 extension_system()->install_requests(); |
| 244 ASSERT_EQ(1u, requests->size()); | 247 ASSERT_EQ(1u, requests->size()); |
| 245 EXPECT_EQ(requests->at(0).extension_id, extension1->id()); | 248 EXPECT_EQ(requests->at(0).extension_id, extension1->id()); |
| 246 EXPECT_NE(requests->at(0).temp_dir.value(), new_version_dir.path().value()); | 249 EXPECT_NE(requests->at(0).temp_dir.value(), new_version_dir.path().value()); |
| 247 } | 250 } |
| 248 | 251 |
| 249 } // namespace | 252 } // namespace |
| 250 | 253 |
| 251 } // namespace extensions | 254 } // namespace extensions |
| OLD | NEW |