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

Unified Diff: content/test/render_thread_impl_browser_test_ipc_helper.h

Issue 2226403002: Remove Channel token from InProcessChildThreadParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moar-channels
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/render_thread_impl_browser_test_ipc_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/render_thread_impl_browser_test_ipc_helper.h
diff --git a/content/test/render_thread_impl_browser_test_ipc_helper.h b/content/test/render_thread_impl_browser_test_ipc_helper.h
deleted file mode 100644
index cb8645e2cf5a890930b831483f18c533ae6d5c3f..0000000000000000000000000000000000000000
--- a/content/test/render_thread_impl_browser_test_ipc_helper.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 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 CONTENT_TEST_RENDER_THREAD_IMPL_BROWSER_TEST_IPC_HELPER_H_
-#define CONTENT_TEST_RENDER_THREAD_IMPL_BROWSER_TEST_IPC_HELPER_H_
-
-#include "content/app/mojo/mojo_init.h"
-#include "ipc/ipc_channel_mojo.h"
-#include "ipc/ipc_channel_proxy.h"
-#include "mojo/edk/test/scoped_ipc_support.h"
-
-namespace IPC {
-class ChannelProxy;
-class Sender;
-};
-
-namespace content {
-
-// Helper for RenderThreadImplBrowserTest which takes care of setting up an IPC
-// server, capable of sending messages to the RenderThread.
-class RenderThreadImplBrowserIPCTestHelper {
- public:
- RenderThreadImplBrowserIPCTestHelper();
- ~RenderThreadImplBrowserIPCTestHelper();
-
- IPC::Sender* Sender() const { return channel_.get(); }
-
- base::MessageLoop* GetMessageLoop() const { return message_loop_.get(); }
-
- const std::string& GetChannelId() const { return channel_id_; }
-
- scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() const;
-
- const std::string& GetMojoIpcToken() const {
- return mojo_ipc_token_;
- }
-
- const std::string& GetMojoApplicationToken() const {
- return mojo_application_token_;
- }
-
- private:
- class DummyListener;
-
- void SetupIpcThread();
- void SetupMojo();
-
- std::unique_ptr<IPC::ChannelProxy> channel_;
- std::unique_ptr<base::Thread> ipc_thread_;
- std::unique_ptr<base::MessageLoopForIO> message_loop_;
- std::unique_ptr<DummyListener> dummy_listener_;
- std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_;
- std::string mojo_ipc_token_;
- std::string mojo_application_token_;
- std::string channel_id_;
-};
-
-} // namespace content
-
-#endif // CONTENT_TEST_RENDER_THREAD_IMPL_BROWSER_TEST_IPC_HELPER_H_
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/render_thread_impl_browser_test_ipc_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698