flutter_flutter/flow/flow_test_utils.cc
liyuqian 8427d73c83
Reland PerformanceOverlayLayer golden test (#7863)
* Revert "Revert "Add mock capability to PerformanceOverlayLayer (#7537)" (#7765)"

This reverts commit 693645e4645001ae460d5794fa6f5c7066677955.

* Add command line args for golden dir and font file
2019-02-20 16:49:39 -08:00

41 lines
970 B
C++

/*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <string>
namespace flow {
static std::string gGoldenDir;
static std::string gFontFile;
const std::string& GetGoldenDir() {
return gGoldenDir;
}
void SetGoldenDir(const std::string& dir) {
gGoldenDir = dir;
}
const std::string& GetFontFile() {
return gFontFile;
}
void SetFontFile(const std::string& file) {
gFontFile = file;
}
} // namespace flow