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

Side by Side Diff: content/browser/service_worker/service_worker_version_unittest.cc

Issue 2207873002: Remove unused includes of shell::InterfaceRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unfail compilation of service_worker_version_unittest.cc 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 unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_version.h" 5 #include "content/browser/service_worker/service_worker_version.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <tuple> 8 #include <tuple>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/test/histogram_tester.h" 13 #include "base/test/histogram_tester.h"
14 #include "content/browser/service_worker/embedded_worker_registry.h" 14 #include "content/browser/service_worker/embedded_worker_registry.h"
15 #include "content/browser/service_worker/embedded_worker_status.h" 15 #include "content/browser/service_worker/embedded_worker_status.h"
16 #include "content/browser/service_worker/embedded_worker_test_helper.h" 16 #include "content/browser/service_worker/embedded_worker_test_helper.h"
17 #include "content/browser/service_worker/service_worker_context_core.h" 17 #include "content/browser/service_worker/service_worker_context_core.h"
18 #include "content/browser/service_worker/service_worker_registration.h" 18 #include "content/browser/service_worker/service_worker_registration.h"
19 #include "content/browser/service_worker/service_worker_test_utils.h" 19 #include "content/browser/service_worker/service_worker_test_utils.h"
20 #include "content/common/service_worker/service_worker_utils.h" 20 #include "content/common/service_worker/service_worker_utils.h"
21 #include "content/public/test/mock_render_process_host.h" 21 #include "content/public/test/mock_render_process_host.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "content/public/test/test_mojo_service.mojom.h" 23 #include "content/public/test/test_mojo_service.mojom.h"
24 #include "content/public/test/test_utils.h" 24 #include "content/public/test/test_utils.h"
25 #include "mojo/public/cpp/bindings/strong_binding.h" 25 #include "mojo/public/cpp/bindings/strong_binding.h"
26 #include "services/shell/public/cpp/interface_registry.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 28
28 // IPC messages for testing --------------------------------------------------- 29 // IPC messages for testing ---------------------------------------------------
29 30
30 #define IPC_MESSAGE_IMPL 31 #define IPC_MESSAGE_IMPL
31 #include "ipc/ipc_message_macros.h" 32 #include "ipc/ipc_message_macros.h"
32 33
33 #define IPC_MESSAGE_START TestMsgStart 34 #define IPC_MESSAGE_START TestMsgStart
34 35
35 IPC_MESSAGE_CONTROL0(TestMsg_Message) 36 IPC_MESSAGE_CONTROL0(TestMsg_Message)
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); 1717 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1);
1717 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0); 1718 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0);
1718 EXPECT_EQ(SERVICE_WORKER_OK, status); 1719 EXPECT_EQ(SERVICE_WORKER_OK, status);
1719 StopWorker(); 1720 StopWorker();
1720 // The UMA for kLinkMouseDown must be recorded when the worker stopped. 1721 // The UMA for kLinkMouseDown must be recorded when the worker stopped.
1721 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); 1722 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1);
1722 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1); 1723 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1);
1723 } 1724 }
1724 1725
1725 } // namespace content 1726 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698