| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <limits> | 5 #include <limits> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const CrxDataCallback& crx_data_callback, | 65 const CrxDataCallback& crx_data_callback, |
| 66 const CompletionCallback& completion_callback)); | 66 const CompletionCallback& completion_callback)); |
| 67 MOCK_METHOD3(Update, | 67 MOCK_METHOD3(Update, |
| 68 void(const std::vector<std::string>& ids, | 68 void(const std::vector<std::string>& ids, |
| 69 const CrxDataCallback& crx_data_callback, | 69 const CrxDataCallback& crx_data_callback, |
| 70 const CompletionCallback& completion_callback)); | 70 const CompletionCallback& completion_callback)); |
| 71 MOCK_CONST_METHOD2(GetCrxUpdateState, | 71 MOCK_CONST_METHOD2(GetCrxUpdateState, |
| 72 bool(const std::string& id, CrxUpdateItem* update_item)); | 72 bool(const std::string& id, CrxUpdateItem* update_item)); |
| 73 MOCK_CONST_METHOD1(IsUpdating, bool(const std::string& id)); | 73 MOCK_CONST_METHOD1(IsUpdating, bool(const std::string& id)); |
| 74 MOCK_METHOD0(Stop, void()); | 74 MOCK_METHOD0(Stop, void()); |
| 75 MOCK_METHOD3(SendUninstallPing, |
| 76 void(const std::string& id, const Version& version, int reason)); |
| 75 | 77 |
| 76 private: | 78 private: |
| 77 ~MockUpdateClient() override; | 79 ~MockUpdateClient() override; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 class MockServiceObserver : public ServiceObserver { | 82 class MockServiceObserver : public ServiceObserver { |
| 81 public: | 83 public: |
| 82 MockServiceObserver(); | 84 MockServiceObserver(); |
| 83 ~MockServiceObserver() override; | 85 ~MockServiceObserver() override; |
| 84 | 86 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 355 |
| 354 EXPECT_TRUE(component_updater().RegisterComponent(crx_component)); | 356 EXPECT_TRUE(component_updater().RegisterComponent(crx_component)); |
| 355 component_updater().MaybeThrottle( | 357 component_updater().MaybeThrottle( |
| 356 "jebgalgnebhfojomionfpkfelancnnkf", | 358 "jebgalgnebhfojomionfpkfelancnnkf", |
| 357 base::Bind(&ComponentUpdaterTest::ReadyCallback)); | 359 base::Bind(&ComponentUpdaterTest::ReadyCallback)); |
| 358 | 360 |
| 359 RunThreads(); | 361 RunThreads(); |
| 360 } | 362 } |
| 361 | 363 |
| 362 } // namespace component_updater | 364 } // namespace component_updater |
| OLD | NEW |