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
a1c4b46b
Commit
a1c4b46b
authored
Jul 09, 2012
by
jgm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added defines for iOS
parent
a88c9a88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
gtest-port.h
include/gtest/internal/gtest-port.h
+11
-1
gtest.cc
src/gtest.cc
+1
-1
No files found.
include/gtest/internal/gtest-port.h
View file @
a1c4b46b
...
@@ -90,6 +90,7 @@
...
@@ -90,6 +90,7 @@
// GTEST_OS_LINUX - Linux
// GTEST_OS_LINUX - Linux
// GTEST_OS_LINUX_ANDROID - Google Android
// GTEST_OS_LINUX_ANDROID - Google Android
// GTEST_OS_MAC - Mac OS X
// GTEST_OS_MAC - Mac OS X
// GTEST_OS_IOS - iOS
// GTEST_OS_NACL - Google Native Client (NaCl)
// GTEST_OS_NACL - Google Native Client (NaCl)
// GTEST_OS_OPENBSD - OpenBSD
// GTEST_OS_OPENBSD - OpenBSD
// GTEST_OS_QNX - QNX
// GTEST_OS_QNX - QNX
...
@@ -195,6 +196,11 @@
...
@@ -195,6 +196,11 @@
# include <sys/stat.h>
# include <sys/stat.h>
#endif // !_WIN32_WCE
#endif // !_WIN32_WCE
#if defined __APPLE__
# include <AvailabilityMacros.h>
# include <TargetConditionals.h>
#endif
#include <iostream> // NOLINT
#include <iostream> // NOLINT
#include <sstream> // NOLINT
#include <sstream> // NOLINT
#include <string> // NOLINT
#include <string> // NOLINT
...
@@ -229,6 +235,9 @@
...
@@ -229,6 +235,9 @@
# endif // _WIN32_WCE
# endif // _WIN32_WCE
#elif defined __APPLE__
#elif defined __APPLE__
# define GTEST_OS_MAC 1
# define GTEST_OS_MAC 1
# if TARGET_OS_IPHONE
# define GTEST_OS_IOS 1
# endif
#elif defined __linux__
#elif defined __linux__
# define GTEST_OS_LINUX 1
# define GTEST_OS_LINUX 1
# ifdef ANDROID
# ifdef ANDROID
...
@@ -553,7 +562,8 @@
...
@@ -553,7 +562,8 @@
// Google Test does not support death tests for VC 7.1 and earlier as
// Google Test does not support death tests for VC 7.1 and earlier as
// abort() in a VC 7.1 application compiled as GUI in debug config
// abort() in a VC 7.1 application compiled as GUI in debug config
// pops up a dialog window that cannot be suppressed programmatically.
// pops up a dialog window that cannot be suppressed programmatically.
#if (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \
#if (GTEST_OS_LINUX || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \
(GTEST_OS_MAC && !GTEST_OS_IOS) || \
(GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \
(GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \
GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \
GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \
GTEST_OS_OPENBSD || GTEST_OS_QNX)
GTEST_OS_OPENBSD || GTEST_OS_QNX)
...
...
src/gtest.cc
View file @
a1c4b46b
...
@@ -2602,7 +2602,7 @@ void ColoredPrintf(GTestColor color, const char* fmt, ...) {
...
@@ -2602,7 +2602,7 @@ void ColoredPrintf(GTestColor color, const char* fmt, ...) {
va_list
args
;
va_list
args
;
va_start
(
args
,
fmt
);
va_start
(
args
,
fmt
);
#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS
#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS
|| GTEST_OS_IOS
const
bool
use_color
=
false
;
const
bool
use_color
=
false
;
#else
#else
static
const
bool
in_color_mode
=
static
const
bool
in_color_mode
=
...
...
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