#include "services/device/geolocation/position_cache_impl.h"
#include <memory>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "services/device/geolocation/position_cache_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
namespace {
constexpr char kMetricPrefixPositionCacheImpl[] = …;
constexpr char kMetricAddTimeMs[] = …;
constexpr char kMetricFindTimeMs[] = …;
constexpr char kStoryBaseline[] = …;
perf_test::PerfResultReporter SetUpReporter(const std::string& story) { … }
}
namespace device {
class PositionCacheImplPerfTest : public ::testing::Test { … };
TEST_F(PositionCacheImplPerfTest, Adding) { … }
TEST_F(PositionCacheImplPerfTest, Finding) { … }
}