webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Namespaces | Macros | Functions
fileutils.cc File Reference
#include "webrtc/test/testsupport/fileutils.h"
#include <assert.h>
#include <unistd.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory>
#include "webrtc/typedefs.h"

Namespaces

 webrtc
 
 webrtc::test
 

Macros

#define GET_CURRENT_DIR   getcwd
 
#define S_ISDIR(mode)   (((mode) & S_IFMT) == S_IFDIR)
 

Functions

void webrtc::test::SetExecutablePath (const std::string &path_to_executable)
 
bool webrtc::test::FileExists (const std::string &file_name)
 
std::string webrtc::test::ProjectRootPath ()
 
std::string webrtc::test::OutputPath ()
 
std::string webrtc::test::WorkingDir ()
 
std::string webrtc::test::TempFilename (const std::string &dir, const std::string &prefix)
 
bool webrtc::test::CreateDir (const std::string &directory_name)
 
std::string webrtc::test::ResourcePath (const std::string &name, const std::string &extension)
 
size_t webrtc::test::GetFileSize (const std::string &filename)
 

Macro Definition Documentation

◆ GET_CURRENT_DIR

#define GET_CURRENT_DIR   getcwd

◆ S_ISDIR

#define S_ISDIR (   mode)    (((mode) & S_IFMT) == S_IFDIR)