Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
1ecef1a2
Commit
1ecef1a2
authored
Jun 11, 2015
by
Austin Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified FindRubyTestDir to use GOOGLE_THIRD_PARTY_PROTOBUF
parent
7b354163
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ruby_generator_unittest.cc
src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
+4
-0
No files found.
src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
View file @
1ecef1a2
...
...
@@ -47,6 +47,7 @@ namespace {
string
FindRubyTestDir
(
const
string
&
file
)
{
// Inspired by TestSourceDir() in src/google/protobuf/testing/googletest.cc.
#ifndef GOOGLE_THIRD_PARTY_PROTOBUF
string
prefix
=
"."
;
while
(
!
File
::
Exists
(
prefix
+
"/src/google/protobuf/compiler/ruby"
+
file
))
{
if
(
!
File
::
Exists
(
prefix
))
{
...
...
@@ -57,6 +58,9 @@ string FindRubyTestDir(const string& file) {
prefix
+=
"/.."
;
}
return
prefix
+
"/src/google/protobuf/compiler/ruby"
;
#else
return
"third_party/protobuf/src/google/protobuf/compiler/ruby"
;
#endif // GOOGLE_THIRD_PARTY_PROTOBUF
}
// This test is a simple golden-file test over the output of the Ruby code
...
...
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