guyben and jianglai
95647528b8
Clean up test "load resources" methods and classes
...
There is a big mix of different "load Resources" from different libraries
depending on where you were and what type of resource you want. Now there is a
clear hirarchy:
ResourceUtils:
for use in actual (non-test) code, reads a file from a context directory
TestDataHelper (uses ResourceUtils):
for use in tests, reads a file from a context directory + "/testdata". Also
caches the resource so calling it multiple times with the same file will
not read the file multiple times.
Library specific helpers (e.g. ToolsTestData) (uses TestDataHelper):
for use in that library's tests only, reads from a specific testdata directory.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177027533
2017-12-01 22:14:05 -05:00
..
2017-11-07 17:22:56 -05:00
2017-12-01 22:14:05 -05:00
2017-07-12 11:03:50 -04:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-10-24 16:53:47 -04:00
2017-11-21 18:54:42 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-07-10 11:22:39 -04:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 17:08:12 -05:00
2017-02-02 16:27:22 -05:00
2017-10-24 16:53:47 -04:00
2017-02-02 16:27:22 -05:00
2017-10-24 16:53:47 -04:00
2017-11-07 16:51:06 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-05-03 11:06:19 -04:00
2017-02-02 16:27:22 -05:00
2017-05-03 11:08:02 -04:00
2017-10-24 16:53:47 -04:00
2017-10-24 16:53:47 -04:00
2017-04-05 10:10:38 -04:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-07-12 11:03:50 -04:00
2017-02-02 16:27:22 -05:00
2017-11-21 18:54:42 -05:00
2017-07-12 11:03:50 -04:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-05-23 17:22:49 -04:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-10-24 16:53:47 -04:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-08-01 16:58:59 -04:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-09-20 10:27:17 -04:00
2017-11-07 17:22:56 -05:00
2017-09-12 15:51:50 -04:00
2017-10-24 16:53:47 -04:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-10-24 16:53:47 -04:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-02-02 16:27:22 -05:00
2017-05-17 11:44:46 -04:00
2017-12-01 22:14:05 -05:00
2017-11-07 17:22:56 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-08-01 16:58:59 -04:00
2017-12-01 22:14:05 -05:00
2017-11-21 18:56:04 -05:00
2017-03-13 11:22:55 -04:00
2017-11-07 17:22:56 -05:00
2017-11-21 18:54:42 -05:00
2017-02-02 16:27:22 -05:00
2017-11-07 17:22:56 -05:00
2017-10-24 16:53:47 -04:00
2017-02-02 16:27:22 -05:00
2017-08-01 16:57:36 -04:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-11-07 17:22:56 -05:00
2017-08-01 16:58:59 -04:00
2017-08-01 16:58:59 -04:00