Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 WorkingDirectoryInstance ()
 

Detailed Description

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

Definition at line 17 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}
std::string JoinPaths(std::initializer_list< std::string > components)
Definition paths.cc:14

◆ GetPath()

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

Definition at line 25 of file working_directory.h.

25{ return path_; }

◆ 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}

◆ 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}
#define FML_CHECK(condition)
Definition logging.h:85
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57

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