Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: tests/DataRefTest.cpp

Issue 15719006: Fix for caller of GetTmpDir. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DataRefTest.cpp
diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp
index 9ff7034ca0247370aaa0244b3170bff7400c2ccb..b6daaf95698177d950d5255b9d01883892d16bce 100644
--- a/tests/DataRefTest.cpp
+++ b/tests/DataRefTest.cpp
@@ -260,13 +260,12 @@ static void test_cstring(skiatest::Reporter* reporter) {
}
static void test_files(skiatest::Reporter* reporter) {
- if (skiatest::Test::GetTmpDir().isEmpty()) {
+ SkString tmpDir = skiatest::Test::GetTmpDir();
+ if (tmpDir.isEmpty()) {
return;
}
- const char* tmpDir = skiatest::Test::GetTmpDir().c_str();
- SkString path;
- path.printf("%s%s", tmpDir, "data_test");
+ SkString path = SkOSPath::SkPathJoin(tmpDir.c_str(), "data_test");
const char s[] = "abcdefghijklmnopqrstuvwxyz";
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698