Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
15ef6ec0
Unverified
Commit
15ef6ec0
authored
Aug 14, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1733 from gennadiycivil/master
Move instructions into custom/README files
parents
8bc11c04
caeaef30
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
58 deletions
+78
-58
README.md
googlemock/include/gmock/internal/custom/README.md
+16
-0
gmock-matchers.h
googlemock/include/gmock/internal/custom/gmock-matchers.h
+1
-3
gmock-port.h
googlemock/include/gmock/internal/custom/gmock-port.h
+1
-10
README.md
googletest/include/gtest/internal/custom/README.md
+56
-0
gtest-port.h
googletest/include/gtest/internal/custom/gtest-port.h
+1
-34
gtest-printers.h
googletest/include/gtest/internal/custom/gtest-printers.h
+2
-2
gtest.h
googletest/include/gtest/internal/custom/gtest.h
+1
-9
No files found.
googlemock/include/gmock/internal/custom/README.md
0 → 100644
View file @
15ef6ec0
# Customization Points
The custom directory is an injection point for custom user configurations.
## Header `gmock-port.h`
The following macros can be defined:
### Flag related macros:
*
`GMOCK_DECLARE_bool_(name)`
*
`GMOCK_DECLARE_int32_(name)`
*
`GMOCK_DECLARE_string_(name)`
*
`GMOCK_DEFINE_bool_(name, default_val, doc)`
*
`GMOCK_DEFINE_int32_(name, default_val, doc)`
*
`GMOCK_DEFINE_string_(name, default_val, doc)`
googlemock/include/gmock/internal/custom/gmock-matchers.h
View file @
15ef6ec0
...
...
@@ -27,9 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// ============================================================
// An installation-specific extension point for gmock-matchers.h.
// ============================================================
// Injection point for custom user configurations. See README for details
//
// GOOGLETEST_CM0002 DO NOT DELETE
...
...
googlemock/include/gmock/internal/custom/gmock-port.h
View file @
15ef6ec0
...
...
@@ -27,16 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Injection point for custom user configurations.
// The following macros can be defined:
//
// Flag related macros:
// GMOCK_DECLARE_bool_(name)
// GMOCK_DECLARE_int32_(name)
// GMOCK_DECLARE_string_(name)
// GMOCK_DEFINE_bool_(name, default_val, doc)
// GMOCK_DEFINE_int32_(name, default_val, doc)
// GMOCK_DEFINE_string_(name, default_val, doc)
// Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/custom/README.md
0 → 100644
View file @
15ef6ec0
# Customization Points
The custom directory is an injection point for custom user configurations.
## Header `gtest.h`
### The following macros can be defined:
*
`GTEST_OS_STACK_TRACE_GETTER_`
- The name of an implementation of
`OsStackTraceGetterInterface`
.
*
`GTEST_CUSTOM_TEMPDIR_FUNCTION_`
- An override for
`testing::TempDir()`
. See
`testing::TempDir`
for semantics and signature.
## Header `gtest-port.h`
The following macros can be defined:
### Flag related macros:
*
`GTEST_FLAG(flag_name)`
*
`GTEST_USE_OWN_FLAGFILE_FLAG_`
- Define to 0 when the system provides its
own flagfile flag parsing.
*
`GTEST_DECLARE_bool_(name)`
*
`GTEST_DECLARE_int32_(name)`
*
`GTEST_DECLARE_string_(name)`
*
`GTEST_DEFINE_bool_(name, default_val, doc)`
*
`GTEST_DEFINE_int32_(name, default_val, doc)`
*
`GTEST_DEFINE_string_(name, default_val, doc)`
### Logging:
*
`GTEST_LOG_(severity)`
*
`GTEST_CHECK_(condition)`
*
Functions
`LogToStderr()`
and
`FlushInfoLog()`
have to be provided too.
### Threading:
*
`GTEST_HAS_NOTIFICATION_`
- Enabled if Notification is already provided.
*
`GTEST_HAS_MUTEX_AND_THREAD_LOCAL_`
- Enabled if
`Mutex`
and
`ThreadLocal`
are already provided. Must also provide
`GTEST_DECLARE_STATIC_MUTEX_(mutex)`
and
`GTEST_DEFINE_STATIC_MUTEX_(mutex)`
*
`GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
*
`GTEST_LOCK_EXCLUDED_(locks)`
### Underlying library support features
*
`GTEST_HAS_CXXABI_H_`
### Exporting API symbols:
*
`GTEST_API_`
- Specifier for exported symbols.
## Header `gtest-printers.h`
*
See documentation at
`gtest/gtest-printers.h`
for details on how to define a
custom printer.
googletest/include/gtest/internal/custom/gtest-port.h
View file @
15ef6ec0
...
...
@@ -27,40 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Injection point for custom user configurations.
// The following macros can be defined:
//
// Flag related macros:
// GTEST_FLAG(flag_name)
// GTEST_USE_OWN_FLAGFILE_FLAG_ - Define to 0 when the system provides its
// own flagfile flag parsing.
// GTEST_DECLARE_bool_(name)
// GTEST_DECLARE_int32_(name)
// GTEST_DECLARE_string_(name)
// GTEST_DEFINE_bool_(name, default_val, doc)
// GTEST_DEFINE_int32_(name, default_val, doc)
// GTEST_DEFINE_string_(name, default_val, doc)
//
// Logging:
// GTEST_LOG_(severity)
// GTEST_CHECK_(condition)
// Functions LogToStderr() and FlushInfoLog() have to be provided too.
//
// Threading:
// GTEST_HAS_NOTIFICATION_ - Enabled if Notification is already provided.
// GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ - Enabled if Mutex and ThreadLocal are
// already provided.
// Must also provide GTEST_DECLARE_STATIC_MUTEX_(mutex) and
// GTEST_DEFINE_STATIC_MUTEX_(mutex)
//
// GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)
// GTEST_LOCK_EXCLUDED_(locks)
//
// Underlying library support features:
// GTEST_HAS_CXXABI_H_
//
// Exporting API symbols:
// GTEST_API_ - Specifier for exported symbols.
// Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/custom/gtest-printers.h
View file @
15ef6ec0
...
...
@@ -31,8 +31,8 @@
// installation of gTest.
// It will be included from gtest-printers.h and the overrides in this file
// will be visible to everyone.
//
See documentation at gtest/gtest-printers.h for details on how to define a
//
custom printer.
//
//
Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/custom/gtest.h
View file @
15ef6ec0
...
...
@@ -27,15 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Injection point for custom user configurations.
// The following macros can be defined:
//
// GTEST_OS_STACK_TRACE_GETTER_ - The name of an implementation of
// OsStackTraceGetterInterface.
//
// GTEST_CUSTOM_TEMPDIR_FUNCTION_ - An override for testing::TempDir().
// See testing::TempDir for semantics and
// signature.
// Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
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