aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof KosiƄski <krzysio@google.com>2023-03-04 08:28:43 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-04 08:28:43 +0000
commit75cbc736e0160e1a6b3d841c18e7a65938a7347c (patch)
tree7e56ce7c943781ef6d255e2264e55fe5b626bcc8
parentede283a2477c6a7d8a781c0967e95f84d173bb76 (diff)
parentc92def5d5b03dcdbbccbea6d74f99e7a25f707eb (diff)
downloadfmtlib-android14-qpr1-release.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/fmtlib/+/2469727 Change-Id: If57887e7ed24546cf36f2cb9a46b829719c1968a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--test/gtest-extra.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gtest-extra.h b/test/gtest-extra.h
index 01c70ddb..949ff50e 100644
--- a/test/gtest-extra.h
+++ b/test/gtest-extra.h
@@ -67,8 +67,6 @@ class OutputRedirect {
fmt::file original_; // Original file passed to redirector.
fmt::file read_end_; // Read end of the pipe where the output is redirected.
- GTEST_DISALLOW_COPY_AND_ASSIGN_(OutputRedirect);
-
void flush();
void restore();
@@ -76,6 +74,9 @@ class OutputRedirect {
explicit OutputRedirect(FILE* file);
~OutputRedirect() FMT_NOEXCEPT;
+ OutputRedirect(const OutputRedirect&) = delete;
+ OutputRedirect& operator=(const OutputRedirect&) = delete;
+
// Restores the original file, reads output from the pipe into a string
// and returns it.
std::string restore_and_read();