summaryrefslogtreecommitdiff
path: root/sandbox/linux/tests/scoped_temporary_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/tests/scoped_temporary_file.h')
-rw-r--r--sandbox/linux/tests/scoped_temporary_file.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/sandbox/linux/tests/scoped_temporary_file.h b/sandbox/linux/tests/scoped_temporary_file.h
deleted file mode 100644
index 0734130055..0000000000
--- a/sandbox/linux/tests/scoped_temporary_file.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 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 SANDBOX_LINUX_TESTS_SCOPED_TEMPORARY_FILE_H_
-#define SANDBOX_LINUX_TESTS_SCOPED_TEMPORARY_FILE_H_
-
-#include "base/macros.h"
-
-namespace sandbox {
-// Creates and open a temporary file on creation and closes
-// and removes it on destruction.
-// Unlike base/ helpers, this does not require JNI on Android.
-class ScopedTemporaryFile {
- public:
- ScopedTemporaryFile();
- ~ScopedTemporaryFile();
-
- int fd() const { return fd_; }
- const char* full_file_name() const { return full_file_name_; }
-
- private:
- int fd_;
- char full_file_name_[128];
- DISALLOW_COPY_AND_ASSIGN(ScopedTemporaryFile);
-};
-
-} // namespace sandbox
-
-#endif // SANDBOX_LINUX_TESTS_SCOPED_TEMPORARY_FILE_H_