gmock-pp-string_test.cc (googletest-release-1.11.0) | : | gmock-pp-string_test.cc (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
// Google Mock - a framework for writing C++ mock classes. | // Google Mock - a framework for writing C++ mock classes. | |||
// | // | |||
// This file tests the internal preprocessor macro library. | // This file tests the internal preprocessor macro library. | |||
#include "gmock/internal/gmock-pp.h" | ||||
#include <string> | #include <string> | |||
#include "gmock/gmock.h" | #include "gmock/gmock.h" | |||
#include "gmock/internal/gmock-pp.h" | ||||
namespace testing { | namespace testing { | |||
namespace { | namespace { | |||
// Matcher to verify that to strings are identical up to whitespace | // Matcher to verify that to strings are identical up to whitespace | |||
// Not 100% correct, because it treats "AB" as equal to "A B". | // Not 100% correct, because it treats "AB" as equal to "A B". | |||
::testing::Matcher<const std::string&> SameExceptSpaces(const std::string& s) { | ::testing::Matcher<const std::string&> SameExceptSpaces(const std::string& s) { | |||
auto remove_spaces = [](std::string to_split) { | auto remove_spaces = [](std::string to_split) { | |||
to_split.erase(std::remove(to_split.begin(), to_split.end(), ' '), | to_split.erase(std::remove(to_split.begin(), to_split.end(), ' '), | |||
to_split.end()); | to_split.end()); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added |