I don't think China will abandon North Korea but I also don't think they would be as willing to support North Korea as they have done in the past.
That's not a difficult matter. Unlike the situation between the US and Russia in the 50-60's, China is heavily dependent on trade with the US and the rest of the world.
Step 1: Cut off all trade with China.
Step 2: All Chinese-owned T-bills are declared null and void and Chinese assets at US banks are seized. (Followed by some forensic accounting to track down bonds they own through subsidiaries.)
Step 3: Japan/SK will almost certainly do the same. So would Taiwan if they want to stay under our military umbrella.
If steps 1-3 haven't completely destroyed China's economy:
Step 4: Naval blockade. Any cargo ships entering or leaving a Chinese port are seized.
China has a lot to lose, and very little to gain. If we were serious about overthrowing NK, China would be foolish engage in open hostilities in an attempt to stop us. All they could really do is play passive aggressive games that would make our life marginally harder.
Canada is much different geographically and geopolitically than North Korea, also North Korea ISN'T on the US doorstep.
As a better example of what would happen to North Korea if it were on the US doorstep, look towards Cuba. The US by and large tolerates Cuba to exist in it's current form as long as it does not pose a significant threat to US interests. If Cuba decided to stockpile nuclear weapons you'd see a much different reaction.
Since the 50s the DKRP has been essentially in China's hemisphere of influence under it's own unwritten version of the monroe doctorine.