1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef FCP_CLIENT_FAKE_LOG_MANAGER_H_ 18 #define FCP_CLIENT_FAKE_LOG_MANAGER_H_ 19 20 #include "fcp/base/monitoring.h" 21 #include "fcp/client/diag_codes.pb.h" 22 #include "fcp/client/log_manager.h" 23 24 namespace fcp { 25 namespace client { 26 27 class FakeLogManager : public LogManager { 28 public: LogDiag(ProdDiagCode diagCode)29 void LogDiag(ProdDiagCode diagCode) override { FCP_LOG(ERROR) << diagCode; } 30 LogDiag(DebugDiagCode diagCode)31 void LogDiag(DebugDiagCode diagCode) override { FCP_LOG(ERROR) << diagCode; } 32 LogToLongHistogram(HistogramCounters histogram_counter,int execution_index,int epoch_index,engine::DataSourceType data_source_type,int64_t value)33 void LogToLongHistogram(HistogramCounters histogram_counter, 34 int execution_index, int epoch_index, 35 engine::DataSourceType data_source_type, 36 int64_t value) override {} 37 SetModelIdentifier(const std::string & model_identifier)38 void SetModelIdentifier(const std::string& model_identifier) override {} 39 }; 40 41 } // namespace client 42 } // namespace fcp 43 44 #endif // FCP_CLIENT_FAKE_LOG_MANAGER_H_ 45