| 140 | static uint64 kIncarnation = 1; // Uses in following tests. |
| 141 | |
| 142 | Rendezvous::ParsedKey Key(const string& sender, const uint64 incarnation, |
| 143 | const string& receiver, const string& name) { |
| 144 | Rendezvous::ParsedKey result; |
| 145 | CHECK( |
| 146 | Rendezvous::ParseKey(Rendezvous::CreateKey(sender, incarnation, receiver, |
| 147 | name, FrameAndIter(0, 0)), |
| 148 | &result) |
| 149 | .ok()); |
| 150 | return result; |
| 151 | } |
| 152 | |
| 153 | #define ALICE "/job:j/replica:0/task:0/cpu:0" |
| 154 | #define BOB "/job:j/replica:0/task:0/device:GPU:0" |
no test coverage detected