They had been good friends for a long time.

Literal

They [topic-は] all-along good friends was.

ずっとよい友達だった — ずっと means 'all along, the whole time.' A simple but warm statement about lasting friendship.