#include "Perforce.h" #include static int RunCommand_test() { string result; int err = Perforce::RunCommand("p4 help csommands", &result, true); printf("err=%d result=[[%s]]\n", err, result.c_str()); return 0; } static int GetResourceFileNames_test() { vector results; vector apps; apps.push_back("apps/common"); apps.push_back("apps/Contacts"); int err = Perforce::GetResourceFileNames("43019", "//device", apps, &results, true); if (err != 0) { return err; } if (results.size() != 2) { return 1; } if (results[0] != "//device/apps/common/res/values/strings.xml") { return 1; } if (results[1] != "//device/apps/Contacts/res/values/strings.xml") { return 1; } if (false) { for (size_t i=0; i