Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: testing/gmock/test/gmock_link_test.h

Issue 140003: Upgrade gtest to r267 and gmock to r173. (Closed)
Patch Set: final fileset. Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2009, Google Inc. 1 // Copyright 2009, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 #ifndef GMOCK_TEST_GMOCK_LINK_TEST_H_ 114 #ifndef GMOCK_TEST_GMOCK_LINK_TEST_H_
115 #define GMOCK_TEST_GMOCK_LINK_TEST_H_ 115 #define GMOCK_TEST_GMOCK_LINK_TEST_H_
116 116
117 #include <gmock/gmock.h> 117 #include <gmock/gmock.h>
118 118
119 #ifndef _WIN32_WCE 119 #ifndef _WIN32_WCE
120 #include <errno.h> 120 #include <errno.h>
121 #endif 121 #endif
122 122
123 #include <gmock/internal/gmock-port.h>
123 #include <gtest/gtest.h> 124 #include <gtest/gtest.h>
124 #include <iostream> 125 #include <iostream>
125 #include <vector> 126 #include <vector>
126 127
127 using testing::_; 128 using testing::_;
128 using testing::A; 129 using testing::A;
129 using testing::AllOf; 130 using testing::AllOf;
130 using testing::AnyOf; 131 using testing::AnyOf;
131 using testing::Assign; 132 using testing::Assign;
132 using testing::ContainerEq; 133 using testing::ContainerEq;
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 EXPECT_FALSE(m.Matches(1)); 637 EXPECT_FALSE(m.Matches(1));
637 } 638 }
638 639
639 // Tests the linkage of the MatcherCast<T>() function. 640 // Tests the linkage of the MatcherCast<T>() function.
640 TEST(LinkTest, TestMatcherCast) { 641 TEST(LinkTest, TestMatcherCast) {
641 Matcher<const char*> m = MatcherCast<const char*>(_); 642 Matcher<const char*> m = MatcherCast<const char*>(_);
642 EXPECT_TRUE(m.Matches(NULL)); 643 EXPECT_TRUE(m.Matches(NULL));
643 } 644 }
644 645
645 #endif // GMOCK_TEST_GMOCK_LINK_TEST_H_ 646 #endif // GMOCK_TEST_GMOCK_LINK_TEST_H_
OLDNEW
« no previous file with comments | « testing/gmock/test/gmock-spec-builders_test.cc ('k') | testing/gmock/test/gmock_output_test_.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698