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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/component_updater/mock_component_updater_service.h
diff --git a/components/component_updater/mock_component_updater_service.h b/components/component_updater/mock_component_updater_service.h
index f8d1447cc96f9aae0999069be97e11328fcb2792..7d1ad2452564431b03c1805c5ae6f1c870885d74 100644
--- a/components/component_updater/mock_component_updater_service.h
+++ b/components/component_updater/mock_component_updater_service.h
@@ -11,6 +11,9 @@
#ifndef COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_
#define COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_
+#include <string>
+#include <vector>
+
#include "base/callback.h"
#include "base/sequenced_task_runner.h"
#include "components/component_updater/component_updater_service.h"
@@ -33,6 +36,9 @@ class MockComponentUpdateService : public ComponentUpdateService {
bool(const std::string& id));
MOCK_CONST_METHOD0(GetComponentIDs,
std::vector<std::string>());
+ MOCK_CONST_METHOD1(
+ GetComponentForMimeType,
+ std::unique_ptr<ComponentInfo>(const std::string& mime_type));
MOCK_METHOD0(GetOnDemandUpdater,
OnDemandUpdater&());
MOCK_METHOD2(MaybeThrottle,
« 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