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
fe95bc33
Commit
fe95bc33
authored
Jul 17, 2015
by
kosak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Determine the existence of hash_map/hash_set in gtest-port.h.
parent
060b7452
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
gtest-port.h
include/gtest/internal/gtest-port.h
+9
-0
gtest-port.cc
src/gtest-port.cc
+0
-1
gtest-printers_test.cc
test/gtest-printers_test.cc
+5
-5
No files found.
include/gtest/internal/gtest-port.h
View file @
fe95bc33
...
@@ -606,6 +606,15 @@ struct _RTL_CRITICAL_SECTION;
...
@@ -606,6 +606,15 @@ struct _RTL_CRITICAL_SECTION;
# include <time.h> // NOLINT
# include <time.h> // NOLINT
#endif
#endif
// Determines if hash_map/hash_set are available.
// Only used for testing against those containers.
#if !defined(GTEST_HAS_HASH_MAP_)
# if _MSC_VER
# define GTEST_HAS_HASH_MAP_ 1 // Indicates that hash_map is available.
# define GTEST_HAS_HASH_SET_ 1 // Indicates that hash_set is available.
# endif // _MSC_VER
#endif // !defined(GTEST_HAS_HASH_MAP_)
// Determines whether Google Test can use tr1/tuple. You can define
// Determines whether Google Test can use tr1/tuple. You can define
// this macro to 0 to prevent Google Test from using tuple (any
// this macro to 0 to prevent Google Test from using tuple (any
// feature depending on tuple with be disabled in this mode).
// feature depending on tuple with be disabled in this mode).
...
...
src/gtest-port.cc
View file @
fe95bc33
...
@@ -887,7 +887,6 @@ GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(
...
@@ -887,7 +887,6 @@ GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(
return
file_name
+
":"
+
StreamableToString
(
line
);
return
file_name
+
":"
+
StreamableToString
(
line
);
}
}
GTestLog
::
GTestLog
(
GTestLogSeverity
severity
,
const
char
*
file
,
int
line
)
GTestLog
::
GTestLog
(
GTestLogSeverity
severity
,
const
char
*
file
,
int
line
)
:
severity_
(
severity
)
{
:
severity_
(
severity
)
{
const
char
*
const
marker
=
const
char
*
const
marker
=
...
...
test/gtest-printers_test.cc
View file @
fe95bc33
...
@@ -50,13 +50,13 @@
...
@@ -50,13 +50,13 @@
#include "gtest/gtest.h"
#include "gtest/gtest.h"
// hash_map and hash_set are available under Visual C++.
// hash_map and hash_set are available under Visual C++, or on Linux.
#if _MSC_VER
#if GTEST_HAS_HASH_MAP_
# define GTEST_HAS_HASH_MAP_ 1 // Indicates that hash_map is available.
# include <hash_map> // NOLINT
# include <hash_map> // NOLINT
# define GTEST_HAS_HASH_SET_ 1 // Indicates that hash_set is available.
#endif // GTEST_HAS_HASH_MAP_
#if GTEST_HAS_HASH_SET_
# include <hash_set> // NOLINT
# include <hash_set> // NOLINT
#endif // GTEST_
OS_WINDOWS
#endif // GTEST_
HAS_HASH_SET_
#if GTEST_HAS_STD_FORWARD_LIST_
#if GTEST_HAS_STD_FORWARD_LIST_
# include <forward_list> // NOLINT
# include <forward_list> // NOLINT
...
...
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