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

Side by Side Diff: components/component_updater/component_updater_service_unittest.cc

Issue 1578083002: Implements an UpdateClient::SendUninstallPing API for the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/ui/webui/components_ui.cc ('k') | components/update_client/action.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/components_ui.cc ('k') | components/update_client/action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698