// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_CHROME_FOR_TESTING_CONFIG_H_
#define CHROME_BROWSER_CHROME_FOR_TESTING_CONFIG_H_

#include <string>
#include <vector>

#include "base/files/file_path.h"
#include "base/time/time.h"

class PrefService;

namespace base {
class ListValue;
}

namespace chrome_for_testing {

// Loads Chrome for Testing prefs from the JSON file specified in the
// --chrome-for-testing-config command line switch. Returns false if the file is
// missing or contains invalid JSON.
bool LoadConfig(PrefService* pref_service);

// Convenience functions to retrieve Chrome for Testing prefs returned by
// |g_browser_process->local_state()|.
bool IsEnableUserEducationUI();
bool IsEnableSearchEngineChoiceDialog();
bool IsEnableVirtualClipboard();
const base::ListValue& GetRequiredComponentsList();
base::FilePath GetRequiredComponentsDir();
base::TimeDelta GetRequiredComponentsUpdateTimeout();

// Returns required component names.
std::vector<std::string> GetRequiredComponents();

}  // namespace chrome_for_testing

#endif  // CHROME_BROWSER_CHROME_FOR_TESTING_CONFIG_H_
