| Index: sandbox/src/handle_table_unittest.cc
|
| ===================================================================
|
| --- sandbox/src/handle_table_unittest.cc (revision 92230)
|
| +++ sandbox/src/handle_table_unittest.cc (working copy)
|
| @@ -47,6 +47,8 @@
|
| FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
|
| OPEN_EXISTING, FILE_FLAG_DELETE_ON_CLOSE, NULL);
|
| EXPECT_NE(INVALID_HANDLE_VALUE, file);
|
| + string16 handle_name;
|
| + ASSERT_NE(sandbox::GetHandleName(file, &handle_name), FALSE);
|
|
|
| // Look for the handle in our process
|
| bool handle_found = false;
|
| @@ -54,7 +56,7 @@
|
| for (HandleTable::Iterator it =
|
| handles.HandlesForProcess(::GetCurrentProcessId());
|
| it != handles.end(); ++it) {
|
| - if (it->IsType(HandleTable::kTypeFile) && it->Name().compare(my_file)) {
|
| + if (it->IsType(HandleTable::kTypeFile) && it->Name() == handle_name) {
|
| handle_found = true;
|
| break;
|
| }
|
|
|