mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
minor changes
This commit is contained in:
parent
a7077093af
commit
17b3f78f94
|
@ -25,7 +25,7 @@ absl::Status JsonnetMain(std::string in_file, std::string out_file) {
|
|||
JsonnetApi api(&sandbox);
|
||||
|
||||
// Initialize library's main structure.
|
||||
SAPI_ASSIGN_OR_RETURN(JsonnetVm* jsonnet_vm, api.c_jsonnet_make());
|
||||
SAPI_ASSIGN_OR_RETURN(JsonnetVm * jsonnet_vm, api.c_jsonnet_make());
|
||||
sapi::v::RemotePtr vm_pointer(jsonnet_vm);
|
||||
|
||||
// Read input file.
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
#include "gtest/gtest.h"
|
||||
#include "jsonnet_base_sandbox.h" // NOLINT(build/include)
|
||||
#include "jsonnet_sapi.sapi.h"
|
||||
#include "sandboxed_api/sandbox2/util/path.h"
|
||||
#include "sandboxed_api/util/flag.h"
|
||||
#include "sandboxed_api/util/status_matchers.h"
|
||||
#include "sandboxed_api/sandbox2/util/path.h"
|
||||
|
||||
class JsonnetTestHelper {
|
||||
protected:
|
||||
|
@ -35,8 +35,7 @@ class JsonnetTestHelper {
|
|||
void TestTearDown();
|
||||
|
||||
void Read_input(const char* filename);
|
||||
void Evaluate_jsonnet_code(Evaluation type,
|
||||
bool expected_correct);
|
||||
void Evaluate_jsonnet_code(Evaluation type, bool expected_correct);
|
||||
void Write_output(const char* filename_or_directory, Evaluation type);
|
||||
std::string Read_output(const char* filename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user