Extract common code from StringPiece and StringPiece16 into a templated base class. Convert copy-and-pasted unit tests into TYPED_TESTs.

The motivation is that I wish to add constructors for string::iterator ranges and I don't want to do it twice.

The motivation for adding the string::iterator range constructors is to reduce the number of overloads in string_number_conversions.h .

BUG=87634
TEST=

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114242

Review URL: http://codereview.chromium.org/8659047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115616 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: b1ecd2fc7a6c45987c91051ff480dc6115d3a4dc
6 files changed
tree: 78f8238e0d445168ec16ca445d6ee59140c9b927
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/