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

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

Issue 2264543003: Adds sync brokering to Windows EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 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/mojo_sandbox_browsertest.cc ('k') | content/public/test/OWNERS » ('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"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 177
178 void CreateFolder(const CreateFolderCallback& callback) override { 178 void CreateFolder(const CreateFolderCallback& callback) override {
179 NOTREACHED(); 179 NOTREACHED();
180 } 180 }
181 181
182 void GetRequestorName(const GetRequestorNameCallback& callback) override { 182 void GetRequestorName(const GetRequestorNameCallback& callback) override {
183 callback.Run(mojo::String("")); 183 callback.Run(mojo::String(""));
184 } 184 }
185 185
186 void CreateSharedBuffer(const std::string& message,
187 const CreateSharedBufferCallback& callback) override {
188 NOTREACHED();
189 }
190
186 private: 191 private:
187 explicit TestMojoServiceImpl() {} 192 explicit TestMojoServiceImpl() {}
188 }; 193 };
189 194
190 } // namespace 195 } // namespace
191 196
192 class ServiceWorkerVersionTest : public testing::Test { 197 class ServiceWorkerVersionTest : public testing::Test {
193 protected: 198 protected:
194 struct RunningStateListener : public ServiceWorkerVersion::Listener { 199 struct RunningStateListener : public ServiceWorkerVersion::Listener {
195 RunningStateListener() : last_status(EmbeddedWorkerStatus::STOPPED) {} 200 RunningStateListener() : last_status(EmbeddedWorkerStatus::STOPPED) {}
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); 1739 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1);
1735 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0); 1740 histogram_tester_.ExpectTotalCount(kLinkTapDown, 0);
1736 EXPECT_EQ(SERVICE_WORKER_OK, status); 1741 EXPECT_EQ(SERVICE_WORKER_OK, status);
1737 StopWorker(); 1742 StopWorker();
1738 // The UMA for kLinkMouseDown must be recorded when the worker stopped. 1743 // The UMA for kLinkMouseDown must be recorded when the worker stopped.
1739 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1); 1744 histogram_tester_.ExpectTotalCount(kLinkMouseDown, 1);
1740 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1); 1745 histogram_tester_.ExpectTotalCount(kLinkTapDown, 1);
1741 } 1746 }
1742 1747
1743 } // namespace content 1748 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo_sandbox_browsertest.cc ('k') | content/public/test/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698