Handle AllowKioskAppControlChromeVersion device policy
When AllowKioskAppControlChromeVersion is set to true, get the
required platform version of the auto launched kiosk app from
Chrome and use it as the target version prefix. If the required
platform version is empty, ignore update disabled policy and do
AU to latest.
BUG=chromium:577783
Change-Id: I2ff1981b6c03aa9da4fe46b6f78061c69a71c49a
diff --git a/include/libcros/dbus-proxy-mocks.h b/include/libcros/dbus-proxy-mocks.h
index 97f614f..16790bd 100644
--- a/include/libcros/dbus-proxy-mocks.h
+++ b/include/libcros/dbus-proxy-mocks.h
@@ -37,6 +37,14 @@
const base::Callback<void()>& /*success_callback*/,
const base::Callback<void(brillo::Error*)>& /*error_callback*/,
int /*timeout_ms*/));
+ MOCK_METHOD3(GetKioskAppRequiredPlatformVersion,
+ bool(std::string* /*out_required_platform_version*/,
+ brillo::ErrorPtr* /*error*/,
+ int /*timeout_ms*/));
+ MOCK_METHOD3(GetKioskAppRequiredPlatformVersionAsync,
+ void(const base::Callback<void(const std::string& /*required_platform_version*/)>& /*success_callback*/,
+ const base::Callback<void(brillo::Error*)>& /*error_callback*/,
+ int /*timeout_ms*/));
MOCK_CONST_METHOD0(GetObjectPath, const dbus::ObjectPath&());
private: