aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:39:21 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:39:21 +0000
commitf3f5ba1e2d62e08d08201317733135f20a808388 (patch)
tree7e56ce7c943781ef6d255e2264e55fe5b626bcc8
parent9a0b209f2f97a4c7d425225e3e029cddaf64d9b3 (diff)
parenta80bee481bda3af80ba044a5edce3506971abab8 (diff)
downloadfmtlib-android14-mainline-appsearch-release.tar.gz
Snap for 10453563 from a80bee481bda3af80ba044a5edce3506971abab8 to mainline-appsearch-releaseaml_ase_341510000aml_ase_341410000aml_ase_341310010aml_ase_341113000aml_ase_340913000android14-mainline-appsearch-release
Change-Id: I5cea7dfd2ae8ba8958c2be0f182f33054c492525
-rw-r--r--TEST_MAPPING2
-rw-r--r--test/gtest-extra.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 328028d6..c001ee4f 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -7,7 +7,7 @@
"name": "fmtlib_ostream_test"
}
],
- "hwasan-postsubmit": [
+ "hwasan-presubmit": [
{
"name": "fmtlib_test"
},
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();