Albania allied itself first with the USSR ( until 1960 ) , and then with China ( to 1978 ) .