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
9cfe9abe
Commit
9cfe9abe
authored
May 21, 2018
by
renzhong915@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use GFLAGS_NS instead of google
parent
58e67e46
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
brpc_ssl_unittest.cpp
test/brpc_ssl_unittest.cpp
+1
-1
bthread_setconcurrency_unittest.cpp
test/bthread_setconcurrency_unittest.cpp
+2
-2
No files found.
test/brpc_ssl_unittest.cpp
View file @
9cfe9abe
...
...
@@ -25,7 +25,7 @@ void ExtractHostnames(X509* x, std::vector<std::string>* hostnames);
int
main
(
int
argc
,
char
*
argv
[])
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
google
::
ParseCommandLineFlags
(
&
argc
,
&
argv
,
true
);
GFLAGS_NS
::
ParseCommandLineFlags
(
&
argc
,
&
argv
,
true
);
brpc
::
GlobalInitializeOrDie
();
return
RUN_ALL_TESTS
();
}
...
...
test/bthread_setconcurrency_unittest.cpp
View file @
9cfe9abe
...
...
@@ -127,13 +127,13 @@ void* add_concurrency_proc(void*) {
bool
set_min_concurrency
(
int
num
)
{
std
::
stringstream
ss
;
ss
<<
num
;
std
::
string
ret
=
google
::
SetCommandLineOption
(
"bthread_min_concurrency"
,
ss
.
str
().
c_str
());
std
::
string
ret
=
GFLAGS_NS
::
SetCommandLineOption
(
"bthread_min_concurrency"
,
ss
.
str
().
c_str
());
return
!
ret
.
empty
();
}
int
get_min_concurrency
()
{
std
::
string
ret
;
google
::
GetCommandLineOption
(
"bthread_min_concurrency"
,
&
ret
);
GFLAGS_NS
::
GetCommandLineOption
(
"bthread_min_concurrency"
,
&
ret
);
return
atoi
(
ret
.
c_str
());
}
...
...
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