Ninja
Public Member Functions | Public Attributes | List of all members
ScopedTempDir Struct Reference

#include <test.h>

Public Member Functions

void Cleanup ()
 Clean up the temporary directory. More...
 
void CreateAndEnter (const std::string &name)
 Create a temporary directory and chdir into it. More...
 

Public Attributes

std::string start_dir_
 The temp directory containing our dir. More...
 
std::string temp_dir_name_
 The subdirectory name for our dir, or empty if it hasn't been set up. More...
 

Detailed Description

Definition at line 172 of file test.h.

Member Function Documentation

◆ Cleanup()

void ScopedTempDir::Cleanup ( )

Clean up the temporary directory.

Definition at line 220 of file test.cc.

References Fatal().

◆ CreateAndEnter()

void ScopedTempDir::CreateAndEnter ( const std::string &  name)

Create a temporary directory and chdir into it.

Definition at line 198 of file test.cc.

References Fatal().

Member Data Documentation

◆ start_dir_

std::string ScopedTempDir::start_dir_

The temp directory containing our dir.

Definition at line 180 of file test.h.

◆ temp_dir_name_

std::string ScopedTempDir::temp_dir_name_

The subdirectory name for our dir, or empty if it hasn't been set up.

Definition at line 182 of file test.h.


The documentation for this struct was generated from the following files: