Add usage information tests to device files unit tests

[ Merge of http://go/wvgerrit/24445 ]

Test: Verified by wv unit and integration tests

b/36048120

Change-Id: I9d067e79654331e8e58df5dce5411fbadc73e575
This commit is contained in:
Rahul Frias
2017-04-14 15:12:25 -07:00
parent ce62e1d7e7
commit 57bb6c29ca
2 changed files with 939 additions and 443 deletions

View File

@@ -737,6 +737,11 @@ bool DeviceFiles::ListUsageInfoFiles(
return false;
}
if (usage_info_file_names == NULL) {
LOGW("DeviceFiles::ListUsageInfoFiles: usage_info_file_names not provided");
return false;
}
// Get list of filenames
std::vector<std::string> filenames;
if (!ListFiles(&filenames)) {

File diff suppressed because it is too large Load Diff