| 47 | } |
| 48 | |
| 49 | TEST(AllocatorAttributesTest, AllCombos) { |
| 50 | for (bool on_host : {false, true}) { |
| 51 | for (bool nic_compatible : {false, true}) { |
| 52 | for (bool gpu_compatible : {false, true}) { |
| 53 | AllocatorAttributes aa; |
| 54 | aa.set_on_host(on_host); |
| 55 | aa.set_nic_compatible(nic_compatible); |
| 56 | aa.set_gpu_compatible(gpu_compatible); |
| 57 | EXPECT_EQ(on_host, aa.on_host()); |
| 58 | EXPECT_EQ(nic_compatible, aa.nic_compatible()); |
| 59 | EXPECT_EQ(gpu_compatible, aa.gpu_compatible()); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | TEST(AllocatorAttributesTest, IsEqualOrLessRestrictiveThan) { |
| 66 | AllocatorAttributes a, b; |
nothing calls this directly
no test coverage detected