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

Side by Side Diff: components/component_updater/mock_component_updater_service.h

Issue 2154773002: Implement Just-In-Time Flash updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git pull && gclient sync Created 4 years, 4 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
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 // Automatically generated by testing/gmock/scripts/generator/gmock_gen.py. 5 // Automatically generated by testing/gmock/scripts/generator/gmock_gen.py.
6 // Manual edits: 6 // Manual edits:
7 // - Copyright header added. 7 // - Copyright header added.
8 // - Includes and inclusion guard added. 8 // - Includes and inclusion guard added.
9 // - Constructor and destructor added to satisfy chromium-style checker. 9 // - Constructor and destructor added to satisfy chromium-style checker.
10 10
11 #ifndef COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ 11 #ifndef COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_
12 #define COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ 12 #define COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_
13 13
14 #include <string>
15 #include <vector>
16
14 #include "base/callback.h" 17 #include "base/callback.h"
15 #include "base/sequenced_task_runner.h" 18 #include "base/sequenced_task_runner.h"
16 #include "components/component_updater/component_updater_service.h" 19 #include "components/component_updater/component_updater_service.h"
17 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
18 21
19 namespace component_updater { 22 namespace component_updater {
20 23
21 class MockComponentUpdateService : public ComponentUpdateService { 24 class MockComponentUpdateService : public ComponentUpdateService {
22 public: 25 public:
23 MockComponentUpdateService(); 26 MockComponentUpdateService();
24 ~MockComponentUpdateService() override; 27 ~MockComponentUpdateService() override;
25 28
26 MOCK_METHOD1(AddObserver, 29 MOCK_METHOD1(AddObserver,
27 void(Observer* observer)); 30 void(Observer* observer));
28 MOCK_METHOD1(RemoveObserver, 31 MOCK_METHOD1(RemoveObserver,
29 void(Observer* observer)); 32 void(Observer* observer));
30 MOCK_METHOD1(RegisterComponent, 33 MOCK_METHOD1(RegisterComponent,
31 bool(const CrxComponent& component)); 34 bool(const CrxComponent& component));
32 MOCK_METHOD1(UnregisterComponent, 35 MOCK_METHOD1(UnregisterComponent,
33 bool(const std::string& id)); 36 bool(const std::string& id));
34 MOCK_CONST_METHOD0(GetComponentIDs, 37 MOCK_CONST_METHOD0(GetComponentIDs,
35 std::vector<std::string>()); 38 std::vector<std::string>());
39 MOCK_CONST_METHOD1(
40 GetComponentForMimeType,
41 std::unique_ptr<ComponentInfo>(const std::string& mime_type));
36 MOCK_METHOD0(GetOnDemandUpdater, 42 MOCK_METHOD0(GetOnDemandUpdater,
37 OnDemandUpdater&()); 43 OnDemandUpdater&());
38 MOCK_METHOD2(MaybeThrottle, 44 MOCK_METHOD2(MaybeThrottle,
39 void(const std::string& id, const base::Closure& callback)); 45 void(const std::string& id, const base::Closure& callback));
40 MOCK_METHOD0(GetSequencedTaskRunner, 46 MOCK_METHOD0(GetSequencedTaskRunner,
41 scoped_refptr<base::SequencedTaskRunner>()); 47 scoped_refptr<base::SequencedTaskRunner>());
42 MOCK_CONST_METHOD2(GetComponentDetails, 48 MOCK_CONST_METHOD2(GetComponentDetails,
43 bool(const std::string& id, CrxUpdateItem* item)); 49 bool(const std::string& id, CrxUpdateItem* item));
44 }; 50 };
45 51
46 } // namespace component_updater 52 } // namespace component_updater
47 53
48 #endif // COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ 54 #endif // COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/component_updater/default_component_installer_unittest.cc ('k') | components/update_client/update_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698