| Index: blimp/engine/testing/app/test_blimp_browser_main_parts.h
|
| diff --git a/blimp/engine/testing/app/test_blimp_browser_main_parts.h b/blimp/engine/testing/app/test_blimp_browser_main_parts.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..79a37600ce69f9b2d21bfc28249c9881f3f316e0
|
| --- /dev/null
|
| +++ b/blimp/engine/testing/app/test_blimp_browser_main_parts.h
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_
|
| +#define BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_
|
| +
|
| +#include "blimp/engine/app/blimp_browser_main_parts.h"
|
| +
|
| +namespace net {
|
| +class NetLog;
|
| +}
|
| +
|
| +namespace content {
|
| +struct MainFunctionParams;
|
| +}
|
| +
|
| +namespace blimp {
|
| +namespace engine {
|
| +
|
| +class BlimpEngineConfig;
|
| +
|
| +// Blimp testing implementation of BrowserMainParts. Class to extend
|
| +// class BlimpBrowserMainParts for testing. I.e. This overrides method
|
| +// PreMainMessageLoopRun(), replacing the use of BlimpEngineSession
|
| +// by enabling TestBlimpEngineSession.
|
| +class TestBlimpBrowserMainParts : public BlimpBrowserMainParts {
|
| + public:
|
| + explicit TestBlimpBrowserMainParts(
|
| + const content::MainFunctionParams& parameters);
|
| + ~TestBlimpBrowserMainParts() = default;
|
| +
|
| + // BlimpBrowserMainParts implementation.
|
| + void PreEarlyInitialization() override;
|
| + void PreMainMessageLoopRun() override;
|
| + void PostMainMessageLoopRun() override;
|
| +
|
| + private:
|
| + std::unique_ptr<BlimpEngineConfig> engine_config_;
|
| + std::unique_ptr<net::NetLog> net_log_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TestBlimpBrowserMainParts);
|
| +};
|
| +
|
| +} // namespace engine
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_
|
|
|