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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp

Issue 2578073002: Worker: Supress gmock warnings in WorkerThreadTest (Closed)
Patch Set: replace AtLeast with AnyNumber Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
index 47937ce3f5a450a60b882108be036a2d53b4149d..40d64cdef4fc5d0f3fd13c8ffbf08397516a6a17 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
@@ -13,6 +13,7 @@
#include <memory>
using testing::_;
+using testing::AnyNumber;
using testing::AtMost;
namespace blink {
@@ -83,6 +84,7 @@ class WorkerThreadTest : public ::testing::Test {
EXPECT_CALL(*m_reportingProxy, didInitializeWorkerContext()).Times(1);
EXPECT_CALL(*m_reportingProxy, willEvaluateWorkerScriptMock(_, _)).Times(1);
EXPECT_CALL(*m_reportingProxy, didEvaluateWorkerScript(true)).Times(1);
+ EXPECT_CALL(*m_reportingProxy, countFeature(_)).Times(AnyNumber());
EXPECT_CALL(*m_reportingProxy, willDestroyWorkerGlobalScope()).Times(1);
EXPECT_CALL(*m_reportingProxy, didTerminateWorkerThread()).Times(1);
EXPECT_CALL(*m_lifecycleObserver, contextDestroyed()).Times(1);
@@ -94,6 +96,7 @@ class WorkerThreadTest : public ::testing::Test {
.Times(AtMost(1));
EXPECT_CALL(*m_reportingProxy, willEvaluateWorkerScriptMock(_, _))
.Times(AtMost(1));
+ EXPECT_CALL(*m_reportingProxy, countFeature(_)).Times(AnyNumber());
EXPECT_CALL(*m_reportingProxy, didEvaluateWorkerScript(_)).Times(AtMost(1));
EXPECT_CALL(*m_reportingProxy, willDestroyWorkerGlobalScope())
.Times(AtMost(1));
@@ -105,6 +108,7 @@ class WorkerThreadTest : public ::testing::Test {
EXPECT_CALL(*m_reportingProxy, didCreateWorkerGlobalScope(_)).Times(1);
EXPECT_CALL(*m_reportingProxy, didInitializeWorkerContext()).Times(1);
EXPECT_CALL(*m_reportingProxy, willEvaluateWorkerScriptMock(_, _)).Times(1);
+ EXPECT_CALL(*m_reportingProxy, countFeature(_)).Times(AnyNumber());
EXPECT_CALL(*m_reportingProxy, didEvaluateWorkerScript(false)).Times(1);
EXPECT_CALL(*m_reportingProxy, willDestroyWorkerGlobalScope()).Times(1);
EXPECT_CALL(*m_reportingProxy, didTerminateWorkerThread()).Times(1);
@@ -258,6 +262,7 @@ TEST_F(WorkerThreadTest, Terminate_WhileDebuggerTaskIsRunningOnInitialization) {
EXPECT_CALL(*m_reportingProxy, didCreateWorkerGlobalScope(_)).Times(1);
EXPECT_CALL(*m_reportingProxy, didInitializeWorkerContext()).Times(1);
EXPECT_CALL(*m_reportingProxy, willDestroyWorkerGlobalScope()).Times(1);
+ EXPECT_CALL(*m_reportingProxy, countFeature(_)).Times(AnyNumber());
EXPECT_CALL(*m_reportingProxy, didTerminateWorkerThread()).Times(1);
EXPECT_CALL(*m_lifecycleObserver, contextDestroyed()).Times(1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698