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

Unified Diff: content/shell/renderer/test_runner/web_task.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/web_task.cc
diff --git a/content/shell/renderer/test_runner/web_task.cc b/content/shell/renderer/test_runner/web_task.cc
deleted file mode 100644
index 369b049efc58a86820a67a6d5fb6a74c9aa6782e..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/web_task.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/shell/renderer/test_runner/web_task.h"
-
-#include <algorithm>
-
-#include "third_party/WebKit/public/web/WebKit.h"
-
-namespace content {
-
-WebTask::WebTask(WebTaskList* list) : task_list_(list) {
- task_list_->RegisterTask(this);
-}
-
-WebTask::~WebTask() {
- if (task_list_)
- task_list_->UnregisterTask(this);
-}
-
-WebTaskList::WebTaskList() {
-}
-
-WebTaskList::~WebTaskList() {
- RevokeAll();
-}
-
-void WebTaskList::RegisterTask(WebTask* task) {
- tasks_.push_back(task);
-}
-
-void WebTaskList::UnregisterTask(WebTask* task) {
- std::vector<WebTask*>::iterator iter =
- std::find(tasks_.begin(), tasks_.end(), task);
- if (iter != tasks_.end())
- tasks_.erase(iter);
-}
-
-void WebTaskList::RevokeAll() {
- while (!tasks_.empty())
- tasks_[0]->cancel();
-}
-
-} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/web_task.h ('k') | content/shell/renderer/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698