diff options
Diffstat (limited to 'common/test_utils.h')
-rw-r--r-- | common/test_utils.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/common/test_utils.h b/common/test_utils.h index 44b7aa14..bb5a6789 100644 --- a/common/test_utils.h +++ b/common/test_utils.h @@ -78,7 +78,7 @@ std::string Readlink(const std::string& path); void FillWithData(brillo::Blob* buffer); -// Compare the value of native array for download source parameter. +// Compare the value of builtin array for download source parameter. MATCHER_P(DownloadSourceMatcher, source_array, "") { return std::equal(source_array, source_array + kNumDownloadSources, arg); } @@ -138,22 +138,6 @@ class ScopedLoopbackDeviceBinder { DISALLOW_COPY_AND_ASSIGN(ScopedLoopbackDeviceBinder); }; -class ScopedTempFile { - public: - ScopedTempFile() : ScopedTempFile("update_engine_test_temp_file.XXXXXX") {} - - explicit ScopedTempFile(const std::string& pattern) { - EXPECT_TRUE(utils::MakeTempFile(pattern, &path_, nullptr)); - unlinker_.reset(new ScopedPathUnlinker(path_)); - } - - const std::string& path() const { return path_; } - - private: - std::string path_; - std::unique_ptr<ScopedPathUnlinker> unlinker_; -}; - class ScopedLoopMounter { public: explicit ScopedLoopMounter(const std::string& file_path, |