OLD | NEW |
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" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 private: | 368 private: |
369 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStallInStoppingTest); | 369 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStallInStoppingTest); |
370 }; | 370 }; |
371 | 371 |
372 class MessageReceiverMojoTestService : public MessageReceiver { | 372 class MessageReceiverMojoTestService : public MessageReceiver { |
373 public: | 373 public: |
374 MessageReceiverMojoTestService() : MessageReceiver() {} | 374 MessageReceiverMojoTestService() : MessageReceiver() {} |
375 ~MessageReceiverMojoTestService() override {} | 375 ~MessageReceiverMojoTestService() override {} |
376 | 376 |
377 void OnSetupMojo(int thread_id, shell::InterfaceRegistry* registry) override { | 377 void OnSetupMojo(int thread_id, |
| 378 service_manager::InterfaceRegistry* registry) override { |
378 registry->AddInterface(base::Bind(&TestServiceImpl::Create)); | 379 registry->AddInterface(base::Bind(&TestServiceImpl::Create)); |
379 } | 380 } |
380 | 381 |
381 private: | 382 private: |
382 DISALLOW_COPY_AND_ASSIGN(MessageReceiverMojoTestService); | 383 DISALLOW_COPY_AND_ASSIGN(MessageReceiverMojoTestService); |
383 }; | 384 }; |
384 | 385 |
385 class ServiceWorkerVersionWithMojoTest : public ServiceWorkerVersionTest { | 386 class ServiceWorkerVersionWithMojoTest : public ServiceWorkerVersionTest { |
386 protected: | 387 protected: |
387 ServiceWorkerVersionWithMojoTest() : ServiceWorkerVersionTest() {} | 388 ServiceWorkerVersionWithMojoTest() : ServiceWorkerVersionTest() {} |
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); | 1740 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); |
1740 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0); | 1741 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0); |
1741 EXPECT_EQ(SERVICE_WORKER_OK, status); | 1742 EXPECT_EQ(SERVICE_WORKER_OK, status); |
1742 StopWorker(); | 1743 StopWorker(); |
1743 // The UMA for kLinkMouseDown must be recorded when the worker stopped. | 1744 // The UMA for kLinkMouseDown must be recorded when the worker stopped. |
1744 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); | 1745 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); |
1745 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1); | 1746 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1); |
1746 } | 1747 } |
1747 | 1748 |
1748 } // namespace content | 1749 } // namespace content |
OLD | NEW |