Adding GetOutputDir method to test_support library.

The unittest is not ideal for this, but I would have to use similar code as the implementation of the GetOutputDir in order to verify that it actually runs, so it wouldn't make much sense with a test like that.

It compiles and runs on Linux, Win and Mac. The folder gets created and is writeable from other tests.

I have tried using the GetOutputDir from another project that writes output files and it works as intended on all platforms.

Review URL: http://webrtc-codereview.appspot.com/270001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@906 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/test/testsupport/fileutils.h b/test/testsupport/fileutils.h
index becf56a..0dd662a 100644
--- a/test/testsupport/fileutils.h
+++ b/test/testsupport/fileutils.h
@@ -88,6 +88,19 @@
 // kCannotFindProjectRootDir is returned.
 std::string GetProjectRootPath();
 
+// Creates and returns the absolute path to the output directory where log files
+// and other test artifacts should be put. The output directory is always a
+// directory named "out" at the top-level of the project, i.e. a subfolder to
+// the path returned by GetProjectRootPath().
+//
+// Details described for GetProjectRootPath() apply here too.
+//
+// Returns the absolute path to the output directory (named "out") below the
+// project root dir WITH a trailing path delimiter.
+// If the project root is not found, the string specified by
+// kCannotFindProjectRootDir is returned.
+std::string GetOutputDir();
+
 }  // namespace test
 }  // namespace webrtc