DescriptionThe mojo JS message header validation tests load text files that encode binary messages. A simple gin file access module would simplify writing the tests:
file.getSourceRootDirectory() - return the path to the root src directory
file.getFilesInDirectory(path) - return an array of the filenames found in path. Do not return subdirectory names or links.
file.readFileToString(path) - return the contents of the file as a string.
BUG=397554
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286484
Patch Set 1 #Patch Set 2 : Use base::FilePath::StringType for filenames #Patch Set 3 #Patch Set 4 : Convert to/from FilePath strings with UTF8Unsafe methods #
Total comments: 6
Patch Set 5 : Use function arguments parameter for its isolate #Patch Set 6 : Add null return tests for no-args and non-existant paths #
Total comments: 2
Messages
Total messages: 10 (0 generated)
|