} \
} while(0)
+using namespace std;
+
TEST(Readahead, random_access) {
Readahead r;
r.set_trigger_requests(2);
#include "common/Throttle.h"
#include "common/ceph_argparse.h"
+using namespace std;
+
class ThrottleTest : public ::testing::Test {
protected:
#define dout_subsys ceph_subsys_
+using namespace std;
using ::testing::Return;
using ::testing::_;
#include "common/ceph_argparse.h"
#include "global/global_init.h"
+using namespace std;
+
static void usage(ostream &out)
{
out << "usage: get_command_descriptions [options ...]" << std::endl;
#include "common/CDC.h"
#include "gtest/gtest.h"
+using namespace std;
+
class CDCTest : public ::testing::Test,
public ::testing::WithParamInterface<const char*> {
public:
#include "gtest/gtest.h"
#include "common/hostname.h"
+using namespace std;
+
extern std::string exec(const char* cmd); // defined in test_hostname.cc
class test_config_proxy : public ConfigProxy, public ::testing::Test {
#include "common/config_proxy.h"
#include "log/Log.h"
+using namespace std;
+
TEST(CephContext, do_command)
{
CephContext *cct = (new CephContext(CEPH_ENTITY_TYPE_CLIENT))->get();
double v = *(head++);
double range=0;
while (head != tail) {
- range = max(range, *head - v);
+ range = std::max(range, *head - v);
v = *head;
head++;
}
#include "common/options.h"
+using namespace std;
+
TEST(Option, validate_min_max)
{
auto opt = Option{"foo", Option::TYPE_MILLISECS, Option::LEVEL_ADVANCED}
#include "common/Thread.h"
#include "common/shared_cache.hpp"
+using namespace std;
+
class SharedLRUTest : public SharedLRU<unsigned int, int> {
public:
auto& get_lock() { return lock; }
#include "common/sharedptr_registry.hpp"
#include "common/ceph_argparse.h"
+using namespace std;
+
class SharedPtrRegistryTest : public SharedPtrRegistry<unsigned int, int> {
public:
ceph::mutex &get_lock() { return lock; }
#include "gtest/gtest.h"
#include "include/stringify.h"
+using namespace std;
using ceph::real_clock;
using ceph::real_time;
#include "common/ceph_context.h"
#include "include/util.h"
+using namespace std;
+
namespace fs = std::filesystem;
#if defined(__linux__)