Under the breeding tab it says for passing down moves
Moves that the child learns by level up, if both parents have them.
And technically Riolu could learn these two moves once it evolves, so would that count?
No, It is not possible to get a Riolu that knows either of those moves without hacking.