#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;
class DBusStatistics { … };
DBusStatistics* g_dbus_statistics = …;
}
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) { … }
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) { … }
}
}
}