// Copyright 2020 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_COMMON_PRIVACY_BUDGET_SCOPED_PRIVACY_BUDGET_CONFIG_H_ #define CHROME_COMMON_PRIVACY_BUDGET_SCOPED_PRIVACY_BUDGET_CONFIG_H_ #include <limits> #include <map> #include <vector> #include "base/test/scoped_feature_list.h" #include "chrome/common/privacy_budget/types.h" #include "third_party/blink/public/common/privacy_budget/identifiable_surface.h" namespace test { // Configures the privacy budget feature settings for testing. One can also // configure the service manually by setting the global feature lists // directly. This class is merely a convenience. // // For testing only. // // Note 1: Since we are changing feature lists, the same caveats as // base::test::ScopedFeatureList apply. E.g. The Apply() method should be // called prior to starting the threads in multi threaded environments. // // Note 2: The configuration applied by this class is *scoped*. The destructor // reverts the configuration changes. class ScopedPrivacyBudgetConfig { … }; } // namespace test #endif // CHROME_COMMON_PRIVACY_BUDGET_SCOPED_PRIVACY_BUDGET_CONFIG_H_