Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: blimp/engine/testing/app/test_blimp_browser_main_parts.h

Issue 2572563006: [Blimp] Refactor Blimp test engine with embedded test server and URL rewriting (Closed)
Patch Set: nit change Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « blimp/engine/testing/app/blimp_url_rewriter_unittest.cc ('k') | blimp/engine/testing/app/test_blimp_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698