Heroic African-American names

In the “What is up with African American names” thread (sorry, don’t know how to link to a thread), 'doper Masonite said:

I had always believed that names like Washington, Jefferson, Lincoln, Sherman, etc. became common among African Americans because freed slaves chose the names of US heroes and famous men, not because their former owners had those names.

This could have been done as an homage to the men who helped emancipate them, or could be similar to the practice of naming a child Caesar, Alexander, or Jesus in the hopes that the child becomes as renowned/successful/etc. as their namesake.

So what’s the straight dope? Names of their former captors, names of heroes, or a bit of both?