18eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// 28eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// Copyright (C) 2015 Google, Inc. 38eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// 48eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// Licensed under the Apache License, Version 2.0 (the "License"); 58eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// you may not use this file except in compliance with the License. 68eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// You may obtain a copy of the License at: 78eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// 88eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// http://www.apache.org/licenses/LICENSE-2.0 98eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// 108eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// Unless required by applicable law or agreed to in writing, software 118eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// distributed under the License is distributed on an "AS IS" BASIS, 128eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// See the License for the specific language governing permissions and 148eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// limitations under the License. 158eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// 168eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney 178eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney#pragma once 188eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney 198eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney#include <rapidjson/document.h> 208eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney 218eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney// This class defines common utils to be used by SL4N. 228eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturneyclass CommonUtils { 238eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney public: 248eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney 258eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney // Returns true if parameters from JSON matches the expected parameter size. 268eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney static bool IsParamLengthMatching(rapidjson::Document& doc, 278eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney int expected_param_size); 288eda0a3a73022e04e64419b8d7bd62da3dbe3c0etturney}; 29