diff options
Diffstat (limited to 'content/browser/hyphenator')
-rw-r--r-- | content/browser/hyphenator/hyphenator_message_filter_unittest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/browser/hyphenator/hyphenator_message_filter_unittest.cc b/content/browser/hyphenator/hyphenator_message_filter_unittest.cc index 2c047b8..469f194 100644 --- a/content/browser/hyphenator/hyphenator_message_filter_unittest.cc +++ b/content/browser/hyphenator/hyphenator_message_filter_unittest.cc @@ -131,6 +131,7 @@ TEST_F(HyphenatorMessageFilterTest, OpenDictionary) { NULL, NULL); EXPECT_NE(base::kInvalidPlatformFileValue, file); filter_->SetDictionary(file); + file = base::kInvalidPlatformFileValue; // Ownership has been transferred. // Send a HyphenatorHostMsg_OpenDictionary message with an empty locale and // verify it sends a HyphenatorMsg_SetDictionary message with a valid file. @@ -148,8 +149,6 @@ TEST_F(HyphenatorMessageFilterTest, OpenDictionary) { // Delete all resources used by this test. filter_->Reset(); - if (file != base::kInvalidPlatformFileValue) - base::ClosePlatformFile(file); } } // namespace content |