Home | History | Annotate | Download | only in password_manager

Lines Matching refs:folder

49   // Check for presence of a given password folder.
50 bool hasFolder(const std::string& folder) const {
51 return data_.find(folder) != data_.end();
54 // Check for presence of a given password in a given password folder.
55 bool hasEntry(const std::string& folder, const std::string& key) const {
56 Data::const_iterator it = data_.find(folder);
60 // Get a list of password keys in a given password folder.
61 bool entryList(const std::string& folder,
63 Data::const_iterator it = data_.find(folder);
65 for (Folder::const_iterator fit = it->second.begin();
71 // Read the password data for a given password in a given password folder.
72 bool readEntry(const std::string& folder, const std::string& key,
74 Data::const_iterator it = data_.find(folder);
76 Folder::const_iterator fit = it->second.find(key);
82 // Create the given password folder.
83 bool createFolder(const std::string& folder) {
84 if (reject_local_folders_ && folder.find('(') != std::string::npos)
86 return data_.insert(make_pair(folder, Folder())).second;
89 // Remove the given password from the given password folder.
90 bool removeEntry(const std::string& folder, const std::string& key) {
91 Data::iterator it = data_.find(folder);
96 // Write the given password data to the given password folder.
97 bool writeEntry(const std::string& folder, const std::string& key,
99 Data::iterator it = data_.find(folder);
106 typedef std::map<std::string, Blob> Folder;
107 typedef std::map<std::string, Folder> Data;
212 void CheckPasswordForms(const std::string& folder,
442 const std::string& folder, const ExpectationArray& sorted_expected) {
443 EXPECT_TRUE(wallet_.hasFolder(folder));
445 EXPECT_TRUE(wallet_.entryList(folder, &entries));
451 EXPECT_TRUE(wallet_.readEntry(folder, entries[i], &value));