diff options
author | Elliott Hughes <enh@google.com> | 2012-05-07 17:34:08 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-05-07 17:34:08 -0700 |
commit | 436bbd1a6c227148c294117e725e03be75e01ebf (patch) | |
tree | c0312cb3d52d2043e993eab54f6093f745e705db /tools/localize/Perforce_test.cpp | |
parent | 476b03b0c0d5cae4d1b114c6f80858d59ba36cad (diff) | |
download | frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.zip frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.tar.gz frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.tar.bz2 |
The 'localize' tool is dead.
Change-Id: I6486e50fd1d2f82dd040371a308a2a756beadb64
Diffstat (limited to 'tools/localize/Perforce_test.cpp')
-rw-r--r-- | tools/localize/Perforce_test.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/tools/localize/Perforce_test.cpp b/tools/localize/Perforce_test.cpp deleted file mode 100644 index 142b20e..0000000 --- a/tools/localize/Perforce_test.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include "Perforce.h" -#include <stdio.h> - -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<string> results; - vector<string> 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<results.size(); i++) { - printf("[%zd] '%s'\n", i, results[i].c_str()); - } - } - return 0; -} - -static int -GetFile_test() -{ - string result; - int err = Perforce::GetFile("//device/Makefile", "296", &result, true); - printf("err=%d result=[[%s]]\n", err, result.c_str()); - return 0; -} - -int -Perforce_test() -{ - bool all = false; - int err = 0; - - if (all) err |= RunCommand_test(); - if (all) err |= GetResourceFileNames_test(); - if (all) err |= GetFile_test(); - - return err; -} - |