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

Unified Diff: third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp

Issue 2506553002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (Closed)
Patch Set: add comments Created 4 years, 1 month 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
Index: third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp
diff --git a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp
index 8a5bbdfd64097b3c86ee18ea1c9be76bf45a618d..58f6059609a8f960af8fb21cc21d42bbb4f37209 100644
--- a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp
+++ b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp
@@ -66,23 +66,6 @@ TEST_F(CancellableTaskFactoryTest, IsPending_TaskCreatedAndCancelled) {
EXPECT_FALSE(factory.isPending());
}
-class TestClass {
- public:
- std::unique_ptr<CancellableTaskFactory> m_factory;
-
- TestClass()
- : m_factory(CancellableTaskFactory::create(this, &TestClass::TestFn)) {}
-
- void TestFn() { EXPECT_FALSE(m_factory->isPending()); }
-};
-
-TEST_F(CancellableTaskFactoryTest, IsPending_InCallback) {
- TestClass testClass;
- std::unique_ptr<WebTaskRunner::Task> task =
- wrapUnique(testClass.m_factory->cancelAndCreate());
- task->run();
-}
-
void AddOne(int* ptr) {
*ptr += 1;
}

Powered by Google App Engine
This is Rietveld 408576698