I have always gotten the class of service bonus on such upgraded travel on UA in my Aeroplan account, and in my Cdn+ account when I flew AA. Also received class of service bonus on my upgraded CP flights when they were credited to my AAdvantage account.