diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-05-20 00:42:22 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-05-20 00:42:22 +0000 |
commit | 587c1b37c2f0b6d430fb13ce09326db0135b557c (patch) | |
tree | 9396b2a9b8eb5d3c30beb9001e983bba37bc7774 /include/gmock/internal/gmock-internal-utils.h | |
parent | 47be72a952e672e2635c62353d25e611e9a70dac (diff) | |
download | googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.gz googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.bz2 googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.zip |
Adds support for building Google Mock as a shared library (DLL).
Diffstat (limited to 'include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | include/gmock/internal/gmock-internal-utils.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/gmock/internal/gmock-internal-utils.h b/include/gmock/internal/gmock-internal-utils.h index f0fd8682..34131ef6 100644 --- a/include/gmock/internal/gmock-internal-utils.h +++ b/include/gmock/internal/gmock-internal-utils.h @@ -53,7 +53,7 @@ namespace internal { // words. Each maximum substring of the form [A-Za-z][a-z]*|\d+ is // treated as one word. For example, both "FooBar123" and // "foo_bar_123" are converted to "foo bar 123". -string ConvertIdentifierNameToWords(const char* id_name); +GTEST_API_ string ConvertIdentifierNameToWords(const char* id_name); // PointeeOf<Pointer>::type is the type of a value pointed to by a // Pointer, which can be either a smart pointer or a raw pointer. The @@ -271,7 +271,7 @@ class FailureReporterInterface { }; // Returns the failure reporter used by Google Mock. -FailureReporterInterface* GetFailureReporter(); +GTEST_API_ FailureReporterInterface* GetFailureReporter(); // Asserts that condition is true; aborts the process with the given // message if condition is false. We cannot use LOG(FATAL) or CHECK() @@ -319,7 +319,7 @@ const char kErrorVerbosity[] = "error"; // Returns true iff a log with the given severity is visible according // to the --gmock_verbose flag. -bool LogIsVisible(LogSeverity severity); +GTEST_API_ bool LogIsVisible(LogSeverity severity); // Prints the given message to stdout iff 'severity' >= the level // specified by the --gmock_verbose flag. If stack_frames_to_skip >= @@ -328,7 +328,9 @@ bool LogIsVisible(LogSeverity severity); // stack_frames_to_skip is treated as 0, since we don't know which // function calls will be inlined by the compiler and need to be // conservative. -void Log(LogSeverity severity, const string& message, int stack_frames_to_skip); +GTEST_API_ void Log(LogSeverity severity, + const string& message, + int stack_frames_to_skip); // TODO(wan@google.com): group all type utilities together. |