Commit 196b0248 authored by leon.han's avatar leon.han Committed by Commit bot

[ServiceWorker] Remove some unused code from EmbeddedWorkerTestHelper

BUG=

Review-Url: https://codereview.chromium.org/2607603003
Cr-Commit-Position: refs/heads/master@{#440927}
parent eea33002
......@@ -22,7 +22,6 @@
#include "content/common/service_worker/embedded_worker_messages.h"
#include "content/common/service_worker/embedded_worker_setup.mojom.h"
#include "content/common/service_worker/embedded_worker_start_params.h"
#include "content/common/service_worker/service_worker_event_dispatcher.mojom.h"
#include "content/common/service_worker/service_worker_messages.h"
#include "content/common/service_worker/service_worker_utils.h"
#include "content/public/common/push_event_payload.h"
......@@ -32,6 +31,7 @@
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/public/interfaces/interface_provider.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
......
......@@ -25,16 +25,11 @@
#include "ipc/ipc_test_sink.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "net/http/http_response_info.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/public/interfaces/interface_provider.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
class GURL;
namespace service_manager {
class InterfaceProvider;
class InterfaceRegistry;
}
......@@ -215,10 +210,6 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
EmbeddedWorkerRegistry* registry();
private:
using InterfaceRegistryAndProvider =
std::pair<std::unique_ptr<service_manager::InterfaceRegistry>,
std::unique_ptr<service_manager::InterfaceProvider>>;
class MockEmbeddedWorkerSetup;
class MockServiceWorkerEventDispatcher;
......@@ -272,11 +263,6 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
std::map<int /* thread_id */, int /* embedded_worker_id */>
thread_id_embedded_worker_id_map_;
// Stores the InterfaceRegistry/InterfaceProviders that are associated with
// each individual service worker.
base::hash_map<int, InterfaceRegistryAndProvider>
thread_id_service_registry_map_;
// Updated each time MessageToWorker message is received.
int current_embedded_worker_id_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment