Lincecum struck out seven in 3 2/3 shutout innings and worked out of a one-out, bases-loaded jam.
The two-time NL Cy Young Award winner was one strike away from a rare four-strikeout inning in the fourth after leadoff man Jack Cust reached base on a wild pitch on the third strike.
"Rhythm kind of went in and out between innings, other than that, everything felt fine," Lincecum said. "It's good to get my pitch count up, continue to add on to it and get my body in shape for the rest of the season."
Lincecum gave up three hits and walked three. He throw around 60 pitches and said his changeup was his best pitch.
Wilson, who'd been out with a bad back, made his spring training debut for the World Series champions. He came on in the fifth and struck out the first two Mariners looking with cut fastballs.
"I treated it like a game situation, which is how I treat every game I pitch," Wilson said. "There's always room for improvement, whether it be physical or mental."
Catcher Buster Posey said Wilson looked good in his lone inning after pitching live batting practice last week.
"I'm sure he was happy to actually have some competition," Posey said.
Miguel Tejada hit a two-run triple as the Giants won their eighth spring training game, the most in the majors.
Mariners starter Nate Robertson allowed four runs on four hits in his second spring training start. He walked two in three innings.
"He had good stuff, though," Seattle manager Eric Wedge said. "All of his pitches were working the way they needed to be working."
Mariners C Miguel Olivo, injured during Saturday's game, had an MRI exam on his strained left groin. Test results and an update on how much time he could miss won't come until Monday at the earliest. He told Wedge he was feeling better Sunday. ... RHP Felix Hernandez, the reigning AL Cy Young Award winner, makes his first start of spring training for the Mariners on Monday against Oakland. Top pitching prospect Michael Pineda is also scheduled to pitch for Seattle.