Lines Matching refs:Command
29 ASSERT_EQ(Command::Type::ZERO, Command::ParseType("zero")); in TEST()
30 ASSERT_EQ(Command::Type::NEW, Command::ParseType("new")); in TEST()
31 ASSERT_EQ(Command::Type::ERASE, Command::ParseType("erase")); in TEST()
32 ASSERT_EQ(Command::Type::MOVE, Command::ParseType("move")); in TEST()
33 ASSERT_EQ(Command::Type::BSDIFF, Command::ParseType("bsdiff")); in TEST()
34 ASSERT_EQ(Command::Type::IMGDIFF, Command::ParseType("imgdiff")); in TEST()
35 ASSERT_EQ(Command::Type::STASH, Command::ParseType("stash")); in TEST()
36 ASSERT_EQ(Command::Type::FREE, Command::ParseType("free")); in TEST()
37 ASSERT_EQ(Command::Type::COMPUTE_HASH_TREE, Command::ParseType("compute_hash_tree")); in TEST()
41 ASSERT_EQ(Command::Type::LAST, Command::ParseType("foo")); in TEST()
42 ASSERT_EQ(Command::Type::LAST, Command::ParseType("bar")); in TEST()
54 ASSERT_TRUE(Command::ParseTargetInfoAndSourceInfo( in TEST()
76 ASSERT_TRUE(Command::ParseTargetInfoAndSourceInfo( in TEST()
102 ASSERT_TRUE(Command::ParseTargetInfoAndSourceInfo( in TEST()
135 ASSERT_FALSE(Command::ParseTargetInfoAndSourceInfo( in TEST()
144 ASSERT_FALSE(Command::ParseTargetInfoAndSourceInfo( in TEST()
154 ASSERT_FALSE(Command::ParseTargetInfoAndSourceInfo( in TEST()
163 ASSERT_FALSE(Command::Parse("", 0, &err)); in TEST()
168 Command::abort_allowed_ = true; in TEST()
172 Command command = Command::Parse(input, 0, &err); in TEST()
184 Command command = Command::Parse(input, 0, &err); in TEST()
196 Command command = Command::Parse(input, 1, &err); in TEST()
199 ASSERT_EQ(Command::Type::BSDIFF, command.type()); in TEST()
216 Command command = Command::Parse(input, 2, &err); in TEST()
219 ASSERT_EQ(Command::Type::ERASE, command.type()); in TEST()
232 Command command = Command::Parse(input, 3, &err); in TEST()
235 ASSERT_EQ(Command::Type::FREE, command.type()); in TEST()
253 Command command = Command::Parse(input, 4, &err); in TEST()
256 ASSERT_EQ(Command::Type::IMGDIFF, command.type()); in TEST()
275 Command command = Command::Parse(input, 5, &err); in TEST()
278 ASSERT_EQ(Command::Type::MOVE, command.type()); in TEST()
295 Command command = Command::Parse(input, 6, &err); in TEST()
298 ASSERT_EQ(Command::Type::NEW, command.type()); in TEST()
311 Command command = Command::Parse(input, 7, &err); in TEST()
314 ASSERT_EQ(Command::Type::STASH, command.type()); in TEST()
327 Command command = Command::Parse(input, 8, &err); in TEST()
330 ASSERT_EQ(Command::Type::ZERO, command.type()); in TEST()
343 Command command = Command::Parse(input, 9, &err); in TEST()
346 ASSERT_EQ(Command::Type::COMPUTE_HASH_TREE, command.type()); in TEST()
360 Command::abort_allowed_ = true; in TEST()
384 ASSERT_FALSE(Command::Parse(input, 0, &err)); in TEST()
519 ASSERT_EQ(Command::Type::STASH, transfer_list.commands()[0].type()); in TEST()
520 ASSERT_EQ(Command::Type::MOVE, transfer_list.commands()[1].type()); in TEST()