zircon/system/ulib/fs/test/connection_integration_tests.cc
// Setup file structure with one directory and one file. Note: On creation
// directories and files have no flags and rights.
Setup file structure with one directory and one file. Note: On creation
directories and files have no flags and rights.
Setup file structure with one directory and one file . Note : On creation directories and files have no flags and rights .
VfsTestSetup() : loop_(&kAsyncLoopConfigNoAttachToCurrentThread) {
    vfs_.SetDispatcher(loop_.dispatcher());
    root_ = fbl::AdoptRef<fs::PseudoDir>(new fs::PseudoDir());
    dir_ = fbl::AdoptRef<fs::PseudoDir>(new fs::PseudoDir());
    file_ = fbl::AdoptRef<fs::Vnode>(new fs::BufferedPseudoFile(&DummyReader, &DummyWriter));
    file_or_dir_ = fbl::AdoptRef<FileOrDirectory>(new FileOrDirectory());
    root_->AddEntry("dir", dir_);
    root_->AddEntry("file", file_);
    root_->AddEntry("file_or_dir", file_or_dir_);
  }
VfsTestSetup ( ) : loop_ ( & kAsyncLoopConfigNoAttachToCurrentThread ) { vfs_ . SetDispatcher ( loop_ . dispatcher ( ) ) ; root_ = fbl :: AdoptRef < fs :: PseudoDir > ( new fs :: PseudoDir ( ) ) ; dir_ = fbl :: AdoptRef < fs :: PseudoDir > ( new fs :: PseudoDir ( ) ) ; file_ = fbl :: AdoptRef < fs :: Vnode > ( new fs :: BufferedPseudoFile ( & DummyReader , & DummyWriter ) ) ; file_or_dir_ = fbl :: AdoptRef < FileOrDirectory > ( new FileOrDirectory ( ) ) ; root_ -> AddEntry ( " " , dir_ ) ; root_ -> AddEntry ( " " , file_ ) ; root_ -> AddEntry ( " " , file_or_dir_ ) ; }
Setup file structure with one directory and one file.
Setup file structure with one directory and one file .