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

Unified 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 side-by-side diff with in-line comments
Download patch
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_
« 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