Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
e887b03e
Unverified
Commit
e887b03e
authored
Aug 02, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 02, 2018
Browse files
Merge pull request #1696 from gennadiycivil/master
Code transforms changes, renames.
parents
e5e2ef7c
2a7077fa
Changes
47
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
googletest/test/googletest-throw-on-failure-test.py
googletest/test/googletest-throw-on-failure-test.py
+5
-5
googletest/test/googletest-throw-on-failure-test_.cc
googletest/test/googletest-throw-on-failure-test_.cc
+1
-1
googletest/test/googletest-tuple-test.cc
googletest/test/googletest-tuple-test.cc
+0
-0
googletest/test/googletest-uninitialized-test.py
googletest/test/googletest-uninitialized-test.py
+1
-1
googletest/test/googletest-uninitialized-test_.cc
googletest/test/googletest-uninitialized-test_.cc
+0
-0
googletest/test/gtest_all_test.cc
googletest/test/gtest_all_test.cc
+6
-6
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googletest/test/gtest
_
throw
_
on
_
failure
_
test.py
→
googletest/test/g
oogle
test
-
throw
-
on
-
failure
-
test.py
View file @
e887b03e
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
"""Tests Google Test's throw-on-failure mode with exceptions disabled.
"""Tests Google Test's throw-on-failure mode with exceptions disabled.
This script invokes gtest
_
throw
_
on
_
failure
_
test_ (a program written with
This script invokes g
oogle
test
-
throw
-
on
-
failure
-
test_ (a program written with
Google Test) with different environments and command line flags.
Google Test) with different environments and command line flags.
"""
"""
...
@@ -46,10 +46,10 @@ import gtest_test_utils
...
@@ -46,10 +46,10 @@ import gtest_test_utils
# The command line flag for enabling/disabling the throw-on-failure mode.
# The command line flag for enabling/disabling the throw-on-failure mode.
THROW_ON_FAILURE
=
'gtest_throw_on_failure'
THROW_ON_FAILURE
=
'gtest_throw_on_failure'
# Path to the gtest
_
throw
_
on
_
failure
_
test_ program, compiled with
# Path to the g
oogle
test
-
throw
-
on
-
failure
-
test_ program, compiled with
# exceptions disabled.
# exceptions disabled.
EXE_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
EXE_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest
_
throw
_
on
_
failure
_
test_'
)
'g
oogle
test
-
throw
-
on
-
failure
-
test_'
)
# Utilities.
# Utilities.
...
@@ -76,12 +76,12 @@ def Run(command):
...
@@ -76,12 +76,12 @@ def Run(command):
# The tests. TODO(wan@google.com): refactor the class to share common
# The tests. TODO(wan@google.com): refactor the class to share common
# logic with code in gtest
_
break
_
on
_
failure
_
unittest.py.
# logic with code in g
oogle
test
-
break
-
on
-
failure
-
unittest.py.
class
ThrowOnFailureTest
(
gtest_test_utils
.
TestCase
):
class
ThrowOnFailureTest
(
gtest_test_utils
.
TestCase
):
"""Tests the throw-on-failure mode."""
"""Tests the throw-on-failure mode."""
def
RunAndVerify
(
self
,
env_var_value
,
flag_value
,
should_fail
):
def
RunAndVerify
(
self
,
env_var_value
,
flag_value
,
should_fail
):
"""Runs gtest
_
throw
_
on
_
failure
_
test_ and verifies that it does
"""Runs g
oogle
test
-
throw
-
on
-
failure
-
test_ and verifies that it does
(or does not) exit with a non-zero code.
(or does not) exit with a non-zero code.
Args:
Args:
...
...
googletest/test/gtest
_
throw
_
on
_
failure
_
test_.cc
→
googletest/test/g
oogle
test
-
throw
-
on
-
failure
-
test_.cc
View file @
e887b03e
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
// Tests Google Test's throw-on-failure mode with exceptions disabled.
// Tests Google Test's throw-on-failure mode with exceptions disabled.
//
//
// This program must be compiled with exceptions disabled. It will be
// This program must be compiled with exceptions disabled. It will be
// invoked by gtest
_
throw
_
on
_
failure
_
test.py, and is expected to exit
// invoked by g
oogle
test
-
throw
-
on
-
failure
-
test.py, and is expected to exit
// with non-zero in the throw-on-failure mode or 0 otherwise.
// with non-zero in the throw-on-failure mode or 0 otherwise.
#include "gtest/gtest.h"
#include "gtest/gtest.h"
...
...
googletest/test/gtest-tuple
_
test.cc
→
googletest/test/g
oogle
test-tuple
-
test.cc
View file @
e887b03e
File moved
googletest/test/gtest
_
uninitialized
_
test.py
→
googletest/test/g
oogle
test
-
uninitialized
-
test.py
View file @
e887b03e
...
@@ -35,7 +35,7 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
...
@@ -35,7 +35,7 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
import
gtest_test_utils
import
gtest_test_utils
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest
_
uninitialized
_
test_'
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'g
oogle
test
-
uninitialized
-
test_'
)
def
Assert
(
condition
):
def
Assert
(
condition
):
...
...
googletest/test/gtest
_
uninitialized
_
test_.cc
→
googletest/test/g
oogle
test
-
uninitialized
-
test_.cc
View file @
e887b03e
File moved
googletest/test/gtest_all_test.cc
View file @
e887b03e
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
//
//
// Sometimes it's desirable to build most of Google Test's own tests
// Sometimes it's desirable to build most of Google Test's own tests
// by compiling a single file. This file serves this purpose.
// by compiling a single file. This file serves this purpose.
#include "gtest-filepath
_
test.cc"
#include "g
oogle
test-filepath
-
test.cc"
#include "gtest-linked
_
ptr
_
test.cc"
#include "g
oogle
test-linked
-
ptr
-
test.cc"
#include "gtest-message
_
test.cc"
#include "g
oogle
test-message
-
test.cc"
#include "gtest-options
_
test.cc"
#include "g
oogle
test-options
-
test.cc"
#include "gtest-port
_
test.cc"
#include "g
oogle
test-port
-
test.cc"
#include "gtest_pred_impl_unittest.cc"
#include "gtest_pred_impl_unittest.cc"
#include "gtest_prod_test.cc"
#include "gtest_prod_test.cc"
#include "gtest-test-part
_
test.cc"
#include "g
oogle
test-test-part
-
test.cc"
#include "gtest-typed-test_test.cc"
#include "gtest-typed-test_test.cc"
#include "gtest-typed-test2_test.cc"
#include "gtest-typed-test2_test.cc"
#include "gtest_unittest.cc"
#include "gtest_unittest.cc"
...
...
googletest/test/gtest_unittest.cc
View file @
e887b03e
...
@@ -4689,7 +4689,7 @@ TEST(MacroTest, ADD_FAILURE_AT) {
...
@@ -4689,7 +4689,7 @@ TEST(MacroTest, ADD_FAILURE_AT) {
// Unfortunately, we cannot verify that the failure message contains
// Unfortunately, we cannot verify that the failure message contains
// the right file path and line number the same way, as
// the right file path and line number the same way, as
// EXPECT_NONFATAL_FAILURE() doesn't get to see the file path and
// EXPECT_NONFATAL_FAILURE() doesn't get to see the file path and
// line number. Instead, we do that in gtest
_
output
_
test_.cc.
// line number. Instead, we do that in g
oogle
test
-
output
-
test_.cc.
}
}
// Tests FAIL.
// Tests FAIL.
...
...
Prev
1
2
3
Next
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