Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: crypto/mock_keychain_mac.h

Issue 10798003: Fix 64-bit Mac compilation errors in src/crypto. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crypto/mock_keychain_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « no previous file | crypto/mock_keychain_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698