Commit 34d9af8e authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Fix PluginVmInstallerViewBrowserTest to run locally

Bug: 1081595
Change-Id: I81ed14a06d79799f14e43a3d91444a645d9f430e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2400555
Auto-Submit: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Jason Lin <lxj@google.com>
Reviewed-by: default avatarJason Lin <lxj@google.com>
Cr-Commit-Position: refs/heads/master@{#805615}
parent 6aa6f9f8
......@@ -9,6 +9,7 @@
#include "base/test/scoped_feature_list.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_installer_factory.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_pref_names.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_test_helper.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_util.h"
......@@ -94,6 +95,9 @@ class PluginVmInstallerViewBrowserTest : public DialogBrowserTest {
// Set correct PluginVmImage preference value.
SetPluginVmImagePref(embedded_test_server()->GetURL(kZipFile).spec(),
kZipFileHash);
auto* installer = plugin_vm::PluginVmInstallerFactory::GetForProfile(
browser()->profile());
installer->SetFreeDiskSpaceForTesting(installer->RequiredFreeDiskSpace());
}
void SetPluginVmImagePref(std::string url, std::string hash) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment