chrome/browser/chromeos/extensions/external_filesystem_apitest.cc
// Loads and deserializes a json file in gdata test directory whose name is
// |filename|. Returns new Value object the file is deserialized to.
Loads and deserializes a json file in gdata test directory whose name is
|filename|. Returns new Value object the file is deserialized to.
Loads and deserializes a json file in gdata test directory whose name is |filename| . Returns new Value object the file is deserialized to .
base::Value* LoadJSONFile(const std::string& filename) {
  FilePath path = GetTestFilePath(filename);
  std::string error;
  JSONFileValueSerializer serializer(path);
  Value* value = serializer.Deserialize(NULL, &error);
  EXPECT_TRUE(value) <<
      "Parse error " << path.value() << ": " << error;
  return value;
}
base :: Value * LoadJSONFile ( const std :: string & filename ) { FilePath path = GetTestFilePath ( filename ) ; std :: string error ; JSONFileValueSerializer serializer ( path ) ; Value * value = serializer . Deserialize ( NULL , & error ) ; EXPECT_TRUE ( value ) << " " << path . value ( ) << " " << error ; return value ; }
Loads and deserializes a json file in gdata test directory whose name is
|filename|.
Loads and deserializes a json file in gdata test directory whose name is |filename| .