| // 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_ |