/*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#include "folly/DiscriminatedPtr.h"
+#include <folly/DiscriminatedPtr.h>
#include <gtest/gtest.h>
EXPECT_EQ(&a, static_cast<const Ptr&>(p).get_nothrow<int>());
EXPECT_EQ(&a, p.get<int>());
EXPECT_EQ(&a, static_cast<const Ptr&>(p).get<int>());
- EXPECT_EQ(static_cast<void*>(NULL), p.get_nothrow<void>());
+ EXPECT_EQ(static_cast<void*>(nullptr), p.get_nothrow<void>());
EXPECT_THROW({p.get<void>();}, std::invalid_argument);
Foo foo;
EXPECT_TRUE(p.hasType<Foo>());
EXPECT_FALSE(p.hasType<Bar>());
- EXPECT_EQ(static_cast<int*>(NULL), p.get_nothrow<int>());
+ EXPECT_EQ(static_cast<int*>(nullptr), p.get_nothrow<int>());
p.clear();
EXPECT_TRUE(p.empty());