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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 356 |
357 private: | 357 private: |
358 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStallInStoppingTest); | 358 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStallInStoppingTest); |
359 }; | 359 }; |
360 | 360 |
361 class MessageReceiverMojoTestService : public MessageReceiver { | 361 class MessageReceiverMojoTestService : public MessageReceiver { |
362 public: | 362 public: |
363 MessageReceiverMojoTestService() : MessageReceiver() {} | 363 MessageReceiverMojoTestService() : MessageReceiver() {} |
364 ~MessageReceiverMojoTestService() override {} | 364 ~MessageReceiverMojoTestService() override {} |
365 | 365 |
366 void OnSetupMojo(ServiceRegistry* service_registry) override { | 366 void OnSetupMojo(shell::InterfaceRegistry* registry) override { |
367 service_registry->AddService(base::Bind(&TestMojoServiceImpl::Create)); | 367 registry->AddInterface(base::Bind(&TestMojoServiceImpl::Create)); |
368 } | 368 } |
369 | 369 |
370 private: | 370 private: |
371 DISALLOW_COPY_AND_ASSIGN(MessageReceiverMojoTestService); | 371 DISALLOW_COPY_AND_ASSIGN(MessageReceiverMojoTestService); |
372 }; | 372 }; |
373 | 373 |
374 class ServiceWorkerVersionWithMojoTest : public ServiceWorkerVersionTest { | 374 class ServiceWorkerVersionWithMojoTest : public ServiceWorkerVersionTest { |
375 protected: | 375 protected: |
376 ServiceWorkerVersionWithMojoTest() : ServiceWorkerVersionTest() {} | 376 ServiceWorkerVersionWithMojoTest() : ServiceWorkerVersionTest() {} |
377 | 377 |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 helper_->SimulateSendSimpleEventResult( | 1471 helper_->SimulateSendSimpleEventResult( |
1472 version_->embedded_worker()->embedded_worker_id(), request_id, | 1472 version_->embedded_worker()->embedded_worker_id(), request_id, |
1473 blink::WebServiceWorkerEventResultRejected); | 1473 blink::WebServiceWorkerEventResultRejected); |
1474 runner->Run(); | 1474 runner->Run(); |
1475 | 1475 |
1476 // Verify callback was called with correct status. | 1476 // Verify callback was called with correct status. |
1477 EXPECT_EQ(SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, status); | 1477 EXPECT_EQ(SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, status); |
1478 } | 1478 } |
1479 | 1479 |
1480 } // namespace content | 1480 } // namespace content |
OLD | NEW |