Lines Matching refs:Status
18 #include "chrome/test/chromedriver/chrome/status.h"
32 Status FlattenStringArray(const base::ListValue* src, string16* dest) {
37 return Status(kUnknownError, "keys should be a string");
40 return Status(kUnknownError,
47 return Status(kOk);
52 Status SendKeysOnWindow(
58 Status status = FlattenStringArray(key_list, &keys);
59 if (status.IsError())
60 return status;
63 status = ConvertKeysToKeyEvents(
65 if (status.IsError())
66 return status;
67 status = web_view->DispatchKeyEvents(events);
68 if (status.IsOk())
70 return status;
85 Status UnzipArchive(const base::FilePath& unzip_dir,
89 return Status(kUnknownError, "unable to create temp dir");
94 return Status(kUnknownError, "could not write file to temp dir");
97 return Status(kUnknownError, "could not unzip archive");
98 return Status(kOk);
365 Status UnzipEntry(const base::FilePath& unzip_dir,
370 return Status(kUnknownError, zip_error_msg);
377 Status UnzipSoleFile(const base::FilePath& unzip_dir,
381 Status status = UnzipArchive(unzip_dir, bytes);
382 if (status.IsError()) {
383 Status entry_status = UnzipEntry(unzip_dir, bytes);
385 return Status(kUnknownError, base::StringPrintf(
387 status.message().c_str(), entry_status.message().c_str()));
395 return Status(kUnknownError, "contained 0 files");
399 return Status(kUnknownError, "contained multiple files");
402 return Status(kOk);