Home
last modified time | relevance | path

Searched refs:jsonStr (Results 1 - 13 of 13) sorted by relevance

/ide/tools/previewer/mock/
H A DSystemCapability.cpp54 std::string jsonStr((std::istreambuf_iterator<char>(inFile)), std::istreambuf_iterator<char>()); in ReadCapability()
57 Json2::Value val = JsonReader::ParseJsonData2(jsonStr); in ReadCapability()
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineFactoryTest.cpp40 std::string jsonStr = R"({"ColorMode":"dark"})"; in TEST() local
41 Json2::Value jsonData = JsonReader::ParseJsonData2(jsonStr); in TEST()
H A DCommandLineTest.cpp111 std::string jsonStr = "{\"aaaa\":\"landscape\"}"; in TEST_F() local
112 Json2::Value args2 = JsonReader::ParseJsonData2(jsonStr); in TEST_F()
117 jsonStr = "{\"Orientation\":\"aaaaa\"}"; in TEST_F()
118 Json2::Value args3 = JsonReader::ParseJsonData2(jsonStr); in TEST_F()
123 jsonStr = "{\"Orientation\":\"landscape\"}"; in TEST_F()
124 Json2::Value args4 = JsonReader::ParseJsonData2(jsonStr); in TEST_F()
150 std::string jsonStr = R"({"aaaaa":1080,"originHeight":2340,"width":1080,"height":2340,"screenDensity":480})"; in TEST_F() local
151 Json2::Value args2 = JsonReader::ParseJsonData2(jsonStr); in TEST_F()
164 std::string jsonStr = R"({"originWidth":"1080","originHeight":2340,"width":1080, in TEST_F() local
166 Json2::Value args2 = JsonReader::ParseJsonData2(jsonStr); in TEST_F()
189 std::string jsonStr = R"({"originWidth":5000,"originHeight":2340,"width":1080, TEST_F() local
234 std::string jsonStr = R"({"originWidth" : 1080, "originHeight" : 2340, "width" : 1080, TEST_F() local
[all...]
H A DCommandLineInterfaceTest.cpp364 std::string jsonStr = R"({ "Language" : { "args" : { "Language" : "zh-CN" }}, in TEST() local
369 Json2::Value commands = JsonReader::ParseJsonData2(jsonStr); in TEST()
/ide/tools/previewer/test/fuzztest/
H A DChangeJsonUtil.cpp141 char *jsonStr = cJSON_Print(object); in WriteFile() local
142 if (jsonStr == nullptr) { in WriteFile()
149 outFile << jsonStr << std::endl; in WriteFile()
152 cJSON_free(jsonStr); in WriteFile()
/ide/tools/previewer/test/mock/mock/
H A DMockVirtualScreenImpl.cpp51 void VirtualScreenImpl::FastPreviewCallback(const std::string& jsonStr) {} in FastPreviewCallback() argument
/ide/tools/previewer/jsapp/rich/external/
H A DStageContext.cpp78 std::string jsonStr = JsonReader::ReadFile(loaderJsonPath); in GetModulePathMapFromLoaderJson() local
79 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in GetModulePathMapFromLoaderJson()
115 std::string jsonStr = JsonReader::ReadFile(hspConfigPath); in GetHspAceModuleBuild() local
116 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in GetHspAceModuleBuild()
437 std::string jsonStr = JsonReader::ReadFile(mockJsonFilePath); in ParseMockJsonFile() local
438 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in ParseMockJsonFile()
/ide/tools/previewer/util/
H A DJsonReader.cpp634 std::string jsonStr((std::istreambuf_iterator<char>(inFile)), std::istreambuf_iterator<char>()); in ReadFile()
636 return jsonStr; in ReadFile()
639 Json2::Value JsonReader::ParseJsonData2(const std::string& jsonStr) in ParseJsonData2() argument
641 return Json2::Value(cJSON_Parse(jsonStr.c_str())); in ParseJsonData2()
H A DJsonReader.h125 static Json2::Value ParseJsonData2(const std::string& jsonStr);
/ide/tools/previewer/mock/rich/
H A DVirtualScreenImpl.h51 static void FastPreviewCallback(const std::string& jsonStr);
H A DVirtualScreenImpl.cpp256 void VirtualScreenImpl::FastPreviewCallback(const std::string& jsonStr) in FastPreviewCallback() argument
258 GetInstance().SetFastPreviewMsg(jsonStr); in FastPreviewCallback()
/ide/tools/previewer/cli/
H A DCommandLineInterface.cpp250 std::string jsonStr = JsonReader::ReadFile(path); in ReadAndApplyConfig() local
251 Json2::Value val = JsonReader::ParseJsonData2(jsonStr); in ReadAndApplyConfig()
/ide/tools/previewer/test/unittest/mock/
H A DVirtualScreenImplTest.cpp465 std::string jsonStr = R"({"FastPreview" : "true"})";; in TEST_F() local
466 VirtualScreenImpl::GetInstance().FastPreviewCallback(jsonStr); in TEST_F()

Completed in 10 milliseconds