blob: 342d5fab3bd59bd87415b64eed75a29b8a87b269 [file] [log] [blame]
// Copyright 2022 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_SYNC_TEST_INTEGRATION_APPS_SYNC_TEST_BASE_H_
#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_SYNC_TEST_BASE_H_
#include "build/build_config.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#if BUILDFLAG(IS_WIN)
#include "base/base_paths_win.h"
#include "base/test/scoped_path_override.h"
#endif // BUILDFLAG(IS_WIN)
class AppsSyncTestBase : public SyncTest {
public:
explicit AppsSyncTestBase(TestType test_type);
~AppsSyncTestBase() override;
private:
#if BUILDFLAG(IS_WIN)
// This stops extension installation from creating a shortcut in the real
// desktop startup dir. This prevents Chrome launching with the extension
// on startup on trybots and developer machines.
base::ScopedPathOverride override_start_menu_dir_{base::DIR_START_MENU};
#endif // BUILDFLAG(IS_WIN)
};
#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_APPS_SYNC_TEST_BASE_H_