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

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

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (Closed)
Patch Set: . Created 3 years, 7 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
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 "base/test/simple_test_tick_clock.h" 14 #include "base/test/simple_test_tick_clock.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "content/browser/service_worker/embedded_worker_registry.h" 16 #include "content/browser/service_worker/embedded_worker_registry.h"
17 #include "content/browser/service_worker/embedded_worker_status.h" 17 #include "content/browser/service_worker/embedded_worker_status.h"
18 #include "content/browser/service_worker/embedded_worker_test_helper.h" 18 #include "content/browser/service_worker/embedded_worker_test_helper.h"
19 #include "content/browser/service_worker/service_worker_context_core.h" 19 #include "content/browser/service_worker/service_worker_context_core.h"
20 #include "content/browser/service_worker/service_worker_registration.h" 20 #include "content/browser/service_worker/service_worker_registration.h"
21 #include "content/browser/service_worker/service_worker_test_utils.h" 21 #include "content/browser/service_worker/service_worker_test_utils.h"
22 #include "content/common/service_worker/service_worker_utils.h" 22 #include "content/common/service_worker/service_worker_utils.h"
23 #include "content/public/test/mock_render_process_host.h" 23 #include "content/public/test/mock_render_process_host.h"
24 #include "content/public/test/test_browser_thread_bundle.h" 24 #include "content/public/test/test_browser_thread_bundle.h"
25 #include "content/public/test/test_service.mojom.h" 25 #include "content/public/test/test_service.mojom.h"
26 #include "content/public/test/test_utils.h" 26 #include "content/public/test/test_utils.h"
27 #include "mojo/public/cpp/bindings/strong_binding.h" 27 #include "mojo/public/cpp/bindings/strong_binding.h"
28 #include "services/service_manager/public/cpp/interface_registry.h"
29 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
30 29
31 // IPC messages for testing --------------------------------------------------- 30 // IPC messages for testing ---------------------------------------------------
32 31
33 #define IPC_MESSAGE_IMPL 32 #define IPC_MESSAGE_IMPL
34 #include "ipc/ipc_message_macros.h" 33 #include "ipc/ipc_message_macros.h"
35 34
36 #define IPC_MESSAGE_START TestMsgStart 35 #define IPC_MESSAGE_START TestMsgStart
37 36
38 IPC_MESSAGE_CONTROL0(TestMsg_Message) 37 IPC_MESSAGE_CONTROL0(TestMsg_Message)
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 // Should not have timed out, so error callback should not have been 1617 // Should not have timed out, so error callback should not have been
1619 // called and FinishRequest should return true. 1618 // called and FinishRequest should return true.
1620 EXPECT_EQ(SERVICE_WORKER_OK, status); 1619 EXPECT_EQ(SERVICE_WORKER_OK, status);
1621 EXPECT_TRUE(version_->FinishRequest(request_id1, true /* was_handled */, 1620 EXPECT_TRUE(version_->FinishRequest(request_id1, true /* was_handled */,
1622 base::Time::Now())); 1621 base::Time::Now()));
1623 EXPECT_TRUE(version_->FinishRequest(request_id2, true /* was_handled */, 1622 EXPECT_TRUE(version_->FinishRequest(request_id2, true /* was_handled */,
1624 base::Time::Now())); 1623 base::Time::Now()));
1625 } 1624 }
1626 1625
1627 } // namespace content 1626 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698