| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_ |
| 6 #define BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_ |
| 7 |
| 8 #include "blimp/engine/app/blimp_browser_main_parts.h" |
| 9 |
| 10 namespace net { |
| 11 class NetLog; |
| 12 } |
| 13 |
| 14 namespace content { |
| 15 struct MainFunctionParams; |
| 16 } |
| 17 |
| 18 namespace blimp { |
| 19 namespace engine { |
| 20 |
| 21 class BlimpEngineConfig; |
| 22 |
| 23 // Blimp testing implementation of BrowserMainParts. Class to extend |
| 24 // class BlimpBrowserMainParts for testing. I.e. This overrides method |
| 25 // PreMainMessageLoopRun(), replacing the use of BlimpEngineSession |
| 26 // by enabling TestBlimpEngineSession. |
| 27 class TestBlimpBrowserMainParts : public BlimpBrowserMainParts { |
| 28 public: |
| 29 explicit TestBlimpBrowserMainParts( |
| 30 const content::MainFunctionParams& parameters); |
| 31 ~TestBlimpBrowserMainParts() = default; |
| 32 |
| 33 // BlimpBrowserMainParts implementation. |
| 34 void PreEarlyInitialization() override; |
| 35 void PreMainMessageLoopRun() override; |
| 36 void PostMainMessageLoopRun() override; |
| 37 |
| 38 private: |
| 39 std::unique_ptr<BlimpEngineConfig> engine_config_; |
| 40 std::unique_ptr<net::NetLog> net_log_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(TestBlimpBrowserMainParts); |
| 43 }; |
| 44 |
| 45 } // namespace engine |
| 46 } // namespace blimp |
| 47 |
| 48 #endif // BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |