#include "chrome/browser/devtools/devtools_file_helper.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/browser/download/download_core_service.h"
#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_prefs.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/scoped_testing_local_state.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/file_system_chooser_test_helpers.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/shell_dialogs/selected_file_info.h"
class DevToolsFileHelperTest : public content::RenderViewHostTestHarness,
public DevToolsFileHelper::Delegate { … };
TEST_F(DevToolsFileHelperTest, SaveToFileBase64) { … }
TEST_F(DevToolsFileHelperTest, SaveToFileInvalidBase64) { … }
TEST_F(DevToolsFileHelperTest, SaveToFileText) { … }