chromium/dbus/dbus_statistics.cc

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

#include "dbus/dbus_statistics.h"

#include <map>
#include <tuple>

#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"

namespace dbus {

namespace {

struct StatKey {};

bool operator<(const StatKey& lhs, const StatKey& rhs) {}

struct StatValue {};

StatMap;

//------------------------------------------------------------------------------
// DBusStatistics

// Simple class for gathering DBus usage statistics.
class DBusStatistics {};

DBusStatistics* g_dbus_statistics =;

}  // namespace

//------------------------------------------------------------------------------

namespace statistics {

void Initialize() {}

void Shutdown() {}

void AddSentMethodCall(const std::string& service,
                       const std::string& interface,
                       const std::string& method) {}

void AddReceivedSignal(const std::string& service,
                       const std::string& interface,
                       const std::string& method) {}

void AddBlockingSentMethodCall(const std::string& service,
                               const std::string& interface,
                               const std::string& method) {}

// NOTE: If the output format is changed, be certain to change the test
// expectations as well.
std::string GetAsString(ShowInString show, FormatString format) {}

namespace testing {

bool GetCalls(const std::string& service,
              const std::string& interface,
              const std::string& method,
              int* sent,
              int* received,
              int* blocking) {}

}  // namespace testing

}  // namespace statistics
}  // namespace dbus