Googletest export

Internal Change

PiperOrigin-RevId: 227575279
This commit is contained in:
misterg
2019-01-02 16:50:02 -05:00
committed by Gennadiy Civil
parent f8b1c1af17
commit 14c2fba734
29 changed files with 1 additions and 108 deletions

View File

@@ -1438,10 +1438,6 @@ TEST(FunctorActionTest, UnusedArguments) {
}
// Test that basic built-in actions work with move-only arguments.
// FIXME: Currently, almost all ActionInterface-based actions will not
// work, even if they only try to use other, copyable arguments. Implement them
// if necessary (but note that DoAll cannot work on non-copyable types anyway -
// so maybe it's better to make users use lambdas instead.
TEST(MoveOnlyArgumentsTest, ReturningActions) {
Action<int(std::unique_ptr<int>)> a = Return(1);
EXPECT_EQ(1, a.Perform(std::make_tuple(nullptr)));