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

Unified Diff: chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h

Issue 2853953002: [Chromedriver] Retry deleting temp dir when needed (Closed)
Patch Set: Fix warning message Created 3 years, 8 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: chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h
diff --git a/chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h b/chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd36b94e641a0e61132de693017a328e480a2d5d
--- /dev/null
+++ b/chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2017 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.
+
+#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_SCOPED_TEMP_DIR_WITH_RETRY_H_
+#define CHROME_TEST_CHROMEDRIVER_CHROME_SCOPED_TEMP_DIR_WITH_RETRY_H_
+
+// An object representing a temporary / scratch directory that should be cleaned
+// up (recursively) when this object goes out of scope. Automatically retries
+// if directory cleanup fails.
+
+#include "base/files/scoped_temp_dir.h"
+
+class ScopedTempDirWithRetry : public base::ScopedTempDir {
+ public:
+ // Recursively delete path.
+ ~ScopedTempDirWithRetry();
+
+ // DISALLOW_COPY_AND_ASSIGN(ScopedTempDirWithRetry);
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_CHROME_SCOPED_TEMP_DIR_WITH_RETRY_H_
« no previous file with comments | « chrome/test/chromedriver/chrome/chrome_desktop_impl.h ('k') | chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698