Index: crypto/mock_keychain_mac.h |
=================================================================== |
--- crypto/mock_keychain_mac.h (revision 147091) |
+++ crypto/mock_keychain_mac.h (working copy) |
@@ -151,32 +151,33 @@ |
// Initializes storage for keychain data at |key|. |
void InitializeKeychainData(unsigned int key) const; |
// Sets the data and length of |tag| in the item-th test item. |
- void SetTestDataBytes(int item, UInt32 tag, const void* data, size_t length); |
+ void SetTestDataBytes(unsigned int item, UInt32 tag, |
+ const void* data, size_t length); |
// Sets the data and length of |tag| in the item-th test item based on |
// |value|. The null-terminator will not be included; the Keychain Services |
// docs don't indicate whether it is or not, so clients should not assume |
// that it will be. |
- void SetTestDataString(int item, UInt32 tag, const char* value); |
+ void SetTestDataString(unsigned int item, UInt32 tag, const char* value); |
// Sets the data of the corresponding attribute of the item-th test item to |
// |value|. Assumes that the space has alread been allocated, and the length |
// set. |
- void SetTestDataPort(int item, UInt32 value); |
- void SetTestDataProtocol(int item, SecProtocolType value); |
- void SetTestDataAuthType(int item, SecAuthenticationType value); |
- void SetTestDataNegativeItem(int item, Boolean value); |
- void SetTestDataCreator(int item, OSType value); |
+ void SetTestDataPort(unsigned int item, UInt32 value); |
+ void SetTestDataProtocol(unsigned int item, SecProtocolType value); |
+ void SetTestDataAuthType(unsigned int item, SecAuthenticationType value); |
+ void SetTestDataNegativeItem(unsigned int item, Boolean value); |
+ void SetTestDataCreator(unsigned int item, OSType value); |
// Sets the password data and length for the item-th test item. |
- void SetTestDataPasswordBytes(int item, const void* data, size_t length); |
+ void SetTestDataPasswordBytes(unsigned int item, const void* data, size_t length); |
// Sets the password for the item-th test item. As with SetTestDataString, |
// the data will not be null-terminated. |
- void SetTestDataPasswordString(int item, const char* value); |
+ void SetTestDataPasswordString(unsigned int item, const char* value); |
// Returns the address of the attribute in attribute_list with tag |tag|. |
static SecKeychainAttribute* AttributeWithTag( |
const SecKeychainAttributeList& attribute_list, |
UInt32 tag); |
- static const int kDummySearchRef = 1000; |
+ static const unsigned int kDummySearchRef = 1000; |
typedef struct KeychainPasswordData { |
KeychainPasswordData() : data(NULL), length(0) {} |