Refactor fileutils.cc/h and fileutils_unittests.cc into their own targets.

This will allow for custom implementations downstream.

R=kjellander@webrtc.org, phoglund@webrtc.org
BUG=webrtc:6727

Review-Url: https://codereview.webrtc.org/2548713003
Cr-Commit-Position: refs/heads/master@{#15423}
diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc
index 97d58eb..c8054ba 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -19,6 +19,7 @@
 #include <algorithm>
 
 #include "Shlwapi.h"
+#include "WinDef.h"
 
 #include "webrtc/system_wrappers/include/utf_util_win.h"
 #define GET_CURRENT_DIR _getcwd
@@ -135,7 +136,7 @@
   path = path + kPathDelimiter + ".." + kPathDelimiter + "..";
   char canonical_path[FILENAME_MAX];
 #ifdef WIN32
-  bool succeeded = PathCanonicalizeA(canonical_path, path.c_str());
+  BOOL succeeded = PathCanonicalizeA(canonical_path, path.c_str());
 #else
   bool succeeded = realpath(path.c_str(), canonical_path) != NULL;
 #endif