// Copyright 2018 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_TEST_BASE_FAKE_GAIA_MIXIN_H_ #define CHROME_TEST_BASE_FAKE_GAIA_MIXIN_H_ #include <initializer_list> #include <memory> #include <string> #include <string_view> #include "build/chromeos_buildflags.h" #include "chrome/test/base/mixin_based_in_process_browser_test.h" #include "google_apis/gaia/fake_gaia.h" namespace base { class CommandLine; } // Test mixin that simplifies the usage of `FakeGaia`. // // Simply create it in your test in order to configure Chrome to talk to the // fake Gaia instead of attempting network requests to the real one. E.g.: // // class MyTest : public MixinBasedInProcessBrowserTest { // private: // FakeGaiaMixin fake_gaia_{&mixin_host_}; // }; class FakeGaiaMixin : public InProcessBrowserTestMixin { … }; #endif // CHROME_TEST_BASE_FAKE_GAIA_MIXIN_H_