| Flutter Impeller |

Public Member Functions | Static Public Member Functions | List of all members
impeller::testing::WorkingDirectory Class Reference

`#include <working_directory.h>`

## Public Member Functions
std::string | GetFilenamePath (const std::string &filename) const
void | SetPath (const std::string &path)
const std::string & | GetPath () const

## Static Public Member Functions
static WorkingDirectory * | Instance ()

## Detailed Description

Keeps track of the global variable for the specified working directory.

Definition at line 16 of file working_directory.h.

## Member Function Documentation

## ◆ GetFilenamePath()

std::string impeller::testing::WorkingDirectory::GetFilenamePath | ( | const std::string & | filename | ) | const

Definition at line 23 of file working_directory.cc.

24 {
25 return fml::paths::JoinPaths({path_, filename});
26 }

Referenced by impeller::testing::GoldenDigest::Write().

## ◆ GetPath()

const std::string& impeller::testing::WorkingDirectory::GetPath | ( |  | ) | const
| inline

Definition at line 24 of file working_directory.h.

24 { return path_; }

Referenced by main().

## ◆ Instance()

WorkingDirectory * impeller::testing::WorkingDirectory::Instance | ( |  | ) |
| static

Definition at line 16 of file working_directory.cc.

16 {
17 if (!instance_) {
18 instance_ = new WorkingDirectory();
19 }
20 return instance_;
21 }

Referenced by main().

## ◆ SetPath()

void impeller::testing::WorkingDirectory::SetPath | ( | const std::string & | path | ) |

Definition at line 28 of file working_directory.cc.

28 {
29 FML_CHECK(did_set_ == false);
30 path_ = path;
31 did_set_ = true;
32 }

Referenced by main().

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

- impeller/golden_tests/working_directory.h
- impeller/golden_tests/working_directory.cc