summaryrefslogtreecommitdiff
path: root/base/stringprintf_test.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-07-31 20:21:35 -0700
committerElliott Hughes <enh@google.com>2015-08-03 10:54:17 -0700
commit40d0c7aead38971a99cfcf6af4235623154f8c7a (patch)
treefbf1037b8a56e2a2f1ec019d957bacf57bd6f759 /base/stringprintf_test.cpp
parent11ca81fc3cff887091b0dfa8cdaa246b444f6ea4 (diff)
libbase_test: win32: get some tests working
* Get it building on Win32 by implementing mkstemp() and mkdtemp(). * Run StringPrintf %z test on Windows because it passes because we build with __USE_MINGW_ANSI_STDIO which implements %z. Change-Id: Ia01f94e8258503381a1df6d3da6e40de59e57125 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/stringprintf_test.cpp')
-rw-r--r--base/stringprintf_test.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/stringprintf_test.cpp b/base/stringprintf_test.cpp
index 54b2b6c9e1..5cc20864fe 100644
--- a/base/stringprintf_test.cpp
+++ b/base/stringprintf_test.cpp
@@ -20,14 +20,11 @@
#include <string>
-// The z size sepcifier isn't supported on Windows, so this test isn't useful.
-#if !defined(_WIN32)
TEST(StringPrintfTest, HexSizeT) {
size_t size = 0x00107e59;
EXPECT_EQ("00107e59", android::base::StringPrintf("%08zx", size));
EXPECT_EQ("0x00107e59", android::base::StringPrintf("0x%08zx", size));
}
-#endif
TEST(StringPrintfTest, StringAppendF) {
std::string s("a");