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