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

Unified Diff: blimp/engine/testing/app/test_blimp_content_main_delegate.cc

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_content_main_delegate.cc
diff --git a/blimp/engine/testing/app/test_blimp_content_main_delegate.cc b/blimp/engine/testing/app/test_blimp_content_main_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..12b41e6d181580a33f6696a635d8e9ebf184619f
--- /dev/null
+++ b/blimp/engine/testing/app/test_blimp_content_main_delegate.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "blimp/engine/testing/app/test_blimp_content_main_delegate.h"
+
+#include "base/memory/ptr_util.h"
+#include "blimp/engine/testing/app/test_blimp_content_browser_client.h"
+
+namespace blimp {
+namespace engine {
+
+TestBlimpContentMainDelegate::TestBlimpContentMainDelegate() {}
+
+content::ContentBrowserClient*
+TestBlimpContentMainDelegate::CreateContentBrowserClient() {
+ std::unique_ptr<BlimpContentBrowserClient> browser_client_for_test =
+ base::MakeUnique<TestBlimpContentBrowserClient>();
+ content::ContentBrowserClient* client_ptr = browser_client_for_test.get();
+ SetContentBrowserClientForTesting(std::move(browser_client_for_test));
+ return client_ptr;
+}
+
+} // namespace engine
+} // namespace blimp
« no previous file with comments | « blimp/engine/testing/app/test_blimp_content_main_delegate.h ('k') | blimp/engine/testing/app/test_blimp_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698