Skip to content
Snippets Groups Projects
Commit 647def23 authored by Vijay Pai's avatar Vijay Pai
Browse files

Merge pull request #5547 from dgquintas/limit_cores_includes

Ensure that no #includes are inside of a namespace.
parents da0d46ed e7aa84fe
No related branches found
No related tags found
No related merge requests found
...@@ -34,16 +34,16 @@ ...@@ -34,16 +34,16 @@
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <grpc++/channel.h> #include <grpc++/channel.h>
#include <grpc++/client_context.h> #include <grpc++/client_context.h>
#include "test/cpp/util/create_test_channel.h" #include <grpc/grpc.h>
#include "test/cpp/util/test_config.h" #include <grpc/support/log.h>
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "src/proto/grpc/testing/empty.grpc.pb.h" #include "src/proto/grpc/testing/empty.grpc.pb.h"
#include "src/proto/grpc/testing/messages.grpc.pb.h" #include "src/proto/grpc/testing/messages.grpc.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/cpp/util/create_test_channel.h"
#include "test/cpp/util/test_config.h"
DEFINE_int32(server_control_port, 0, "Server port for control rpcs."); DEFINE_int32(server_control_port, 0, "Server port for control rpcs.");
DEFINE_int32(server_retry_port, 0, "Server port for testing reconnection."); DEFINE_int32(server_retry_port, 0, "Server port for testing reconnection.");
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
* *
*/ */
// Test description at doc/connection-backoff-interop-test-description.md
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
...@@ -40,17 +42,17 @@ ...@@ -40,17 +42,17 @@
#include <sstream> #include <sstream>
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <grpc++/server.h> #include <grpc++/server.h>
#include <grpc++/server_builder.h> #include <grpc++/server_builder.h>
#include <grpc++/server_context.h> #include <grpc++/server_context.h>
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include "test/core/util/reconnect_server.h"
#include "test/cpp/util/test_config.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "src/proto/grpc/testing/empty.grpc.pb.h" #include "src/proto/grpc/testing/empty.grpc.pb.h"
#include "src/proto/grpc/testing/messages.grpc.pb.h" #include "src/proto/grpc/testing/messages.grpc.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/core/util/reconnect_server.h"
#include "test/cpp/util/test_config.h"
DEFINE_int32(control_port, 0, "Server port for controlling the server."); DEFINE_int32(control_port, 0, "Server port for controlling the server.");
DEFINE_int32(retry_port, 0, DEFINE_int32(retry_port, 0,
......
...@@ -37,14 +37,15 @@ ...@@ -37,14 +37,15 @@
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/port_platform.h> #include <grpc/support/port_platform.h>
namespace grpc {
namespace testing {
#ifdef GPR_CPU_LINUX #ifdef GPR_CPU_LINUX
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
#endif #endif
#include <sched.h> #include <sched.h>
namespace grpc {
namespace testing {
int LimitCores(const int* cores, int cores_size) { int LimitCores(const int* cores, int cores_size) {
const int num_cores = gpr_cpu_num_cores(); const int num_cores = gpr_cpu_num_cores();
int cores_set = 0; int cores_set = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment