DescriptionGive MockRead and MockWrite distinct types.
Currently, MockRead and MockWrite are defined as the same type by using
typedef. However, these types are different types and should not be used
interchangably.
This change gives MockRead and MockWrite distinct types by using templates
so the compiler can cause an error when these types are used interchangably.
Some misuses of MockRead and MockWrite were found, so these are fixed in this
change, too.
BUG=none
[email protected],[email protected]
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148782
Patch Set 1 #Patch Set 2 : Fix jingle tests. #
Total comments: 2
Patch Set 3 : Rebase. #Patch Set 4 : Rebase and fix compile. #Messages
Total messages: 16 (0 generated)
|