At bottom out, the difference is 15mm, 145mm vs 130mm. That is significant. You are likely to have issues, such as a tyre hitting the seattube or a seatstay crossbrace (if there is one) hitting the seattube at bottom out. Put a wheel on the (shock-less) frame, push it down until frame contact occurs, the measure the distance between the shock mounts (centre to centre). That'll tell you if it'll work or not. Note that some shocks can have their stroke reduced.
As for the other end of the travel (at top out and at sag), that 5mm will translate to a back end that sits 10-15mm lower than what the bike is designed for, maybe a bit lower once the extra sag of the longer stroke shock is factored in. If you are looking for a lower BB and slacker head and seat tube angles, maybe this is your intention. I wouldnt do it for any other reason.