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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698