Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
432d8109
Commit
432d8109
authored
Nov 03, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove src/butil/base_switches.*
parent
40abe655
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
103 deletions
+0
-103
Makefile
Makefile
+0
-1
base_switches.cc
src/butil/base_switches.cc
+0
-68
base_switches.h
src/butil/base_switches.h
+0
-33
butil_unittest_main.cpp
test/butil_unittest_main.cpp
+0
-1
No files found.
Makefile
View file @
432d8109
...
...
@@ -44,7 +44,6 @@ BUTIL_SOURCES = \
src/butil/at_exit.cc
\
src/butil/atomicops_internals_x86_gcc.cc
\
src/butil/base64.cc
\
src/butil/base_switches.cc
\
src/butil/big_endian.cc
\
src/butil/cpu.cc
\
src/butil/debug/alias.cc
\
...
...
src/butil/base_switches.cc
deleted
100644 → 0
View file @
40abe655
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "butil/base_switches.h"
namespace
switches
{
// Disables the crash reporting.
const
char
kDisableBreakpad
[]
=
"disable-breakpad"
;
// Indicates that crash reporting should be enabled. On platforms where helper
// processes cannot access to files needed to make this decision, this flag is
// generated internally.
const
char
kEnableCrashReporter
[]
=
"enable-crash-reporter"
;
// Generates full memory crash dump.
const
char
kFullMemoryCrashReport
[]
=
"full-memory-crash-report"
;
// Force low-end device when set to 1;
// Auto-detect low-end device when set to 2;
// Force non-low-end device when set to other values or empty;
const
char
kLowEndDeviceMode
[]
=
"low-end-device-mode"
;
// Suppresses all error dialogs when present.
const
char
kNoErrorDialogs
[]
=
"noerrdialogs"
;
// When running certain tests that spawn child processes, this switch indicates
// to the test framework that the current process is a child process.
const
char
kTestChildProcess
[]
=
"test-child-process"
;
// Gives the default maximal active V-logging level; 0 is the default.
// Normally positive values are used for V-logging levels.
const
char
kV
[]
=
"v"
;
// Gives the per-module maximal V-logging levels to override the value
// given by --v. E.g. "my_module=2,foo*=3" would change the logging
// level for all code in source files "my_module.*" and "foo*.*"
// ("-inl" suffixes are also disregarded for this matching).
//
// Any pattern containing a forward or backward slash will be tested
// against the whole pathname and not just the module. E.g.,
// "*/foo/bar/*=2" would change the logging level for all code in
// source files under a "foo/bar" directory.
const
char
kVModule
[]
=
"vmodule"
;
// Will wait for 60 seconds for a debugger to come to attach to the process.
const
char
kWaitForDebugger
[]
=
"wait-for-debugger"
;
// Sends a pretty-printed version of tracing info to the console.
const
char
kTraceToConsole
[]
=
"trace-to-console"
;
// Configure whether chrome://profiler will contain timing information. This
// option is enabled by default. A value of "0" will disable profiler timing,
// while all other values will enable it.
const
char
kProfilerTiming
[]
=
"profiler-timing"
;
// Value of the --profiler-timing flag that will disable timing information for
// chrome://profiler.
const
char
kProfilerTimingDisabledValue
[]
=
"0"
;
#if defined(OS_POSIX)
// Used for turning on Breakpad crash reporting in a debug environment where
// crash reporting is typically compiled but disabled.
const
char
kEnableCrashReporterForTesting
[]
=
"enable-crash-reporter-for-testing"
;
#endif
}
// namespace switches
src/butil/base_switches.h
deleted
100644 → 0
View file @
40abe655
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines all the "base" command-line switches.
#ifndef BASE_BASE_SWITCHES_H_
#define BASE_BASE_SWITCHES_H_
#include "butil/build_config.h"
namespace
switches
{
extern
const
char
kDisableBreakpad
[];
extern
const
char
kEnableCrashReporter
[];
extern
const
char
kFullMemoryCrashReport
[];
extern
const
char
kLowEndDeviceMode
[];
extern
const
char
kNoErrorDialogs
[];
extern
const
char
kProfilerTiming
[];
extern
const
char
kProfilerTimingDisabledValue
[];
extern
const
char
kTestChildProcess
[];
extern
const
char
kTraceToConsole
[];
extern
const
char
kV
[];
extern
const
char
kVModule
[];
extern
const
char
kWaitForDebugger
[];
#if defined(OS_POSIX)
extern
const
char
kEnableCrashReporterForTesting
[];
#endif
}
// namespace switches
#endif // BASE_BASE_SWITCHES_H_
test/butil_unittest_main.cpp
View file @
432d8109
...
...
@@ -3,7 +3,6 @@
#include <sys/resource.h>
#include <gtest/gtest.h>
#include <gflags/gflags.h>
#include "butil/base_switches.h"
#include "butil/at_exit.h"
#include "butil/logging.h"
#include "multiprocess_func_list.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment