chromium/base/json/json_perftest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "base/values.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"

namespace base {

namespace {

constexpr char kMetricPrefixJSON[] =;
constexpr char kMetricReadTime[] =;
constexpr char kMetricWriteTime[] =;

perf_test::PerfResultReporter SetUpReporter(const std::string& story_name) {}

// Generates a simple dictionary value with simple data types, a string and a
// list.
Value::Dict GenerateDict() {}

// Generates a tree-like dictionary value with a size of O(breadth ** depth).
Value::Dict GenerateLayeredDict(int breadth, int depth) {}

}  // namespace

class JSONPerfTest : public testing::Test {};

TEST_F(JSONPerfTest, StressTest) {}

}  // namespace base