summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2015-04-06 09:10:57 -0400
committerEric Milkie <milkie@10gen.com>2015-04-07 16:25:34 -0400
commit0f58d1037bcbfbf932e73e623772c4f815c361ad (patch)
treeae7ea2cf29830f0dc39e326142ddc1b6bc468804 /src/mongo/unittest
parent72543912dca4117e1deb45a56c599657a1bf747c (diff)
downloadmongo-0f58d1037bcbfbf932e73e623772c4f815c361ad.tar.gz
SERVER-17880 Rename OpTime to Timestamp
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r--src/mongo/unittest/unittest_helpers.cpp4
-rw-r--r--src/mongo/unittest/unittest_helpers.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/unittest/unittest_helpers.cpp b/src/mongo/unittest/unittest_helpers.cpp
index 9931a6a8d23..1205c04df80 100644
--- a/src/mongo/unittest/unittest_helpers.cpp
+++ b/src/mongo/unittest/unittest_helpers.cpp
@@ -32,12 +32,12 @@
#include <ostream>
-#include "mongo/bson/optime.h"
+#include "mongo/bson/timestamp.h"
#include "mongo/util/time_support.h"
namespace mongo {
- std::ostream& operator<<(std::ostream &s, const OpTime &ot) {
+ std::ostream& operator<<(std::ostream &s, const Timestamp &ot) {
s << ot.toString();
return s;
}
diff --git a/src/mongo/unittest/unittest_helpers.h b/src/mongo/unittest/unittest_helpers.h
index 0bcf4adb84f..97ab7cc1efe 100644
--- a/src/mongo/unittest/unittest_helpers.h
+++ b/src/mongo/unittest/unittest_helpers.h
@@ -31,11 +31,11 @@
#include <ostream>
namespace mongo {
- class OpTime;
+ class Timestamp;
struct Date_t;
- // So that you can ASSERT_EQUALS two OpTimes
- std::ostream& operator<<(std::ostream& s, const OpTime& ot);
+ // So that you can ASSERT_EQUALS two Timestamps
+ std::ostream& operator<<(std::ostream& s, const Timestamp& ot);
// So that you can ASSERT_EQUALS two Date_ts
std::ostream& operator<<(std::ostream& s, const Date_t& t);