Chromium Code Reviews| Index: chrome/browser/external_protocol/external_protocol_handler_unittest.cc |
| diff --git a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc |
| index 62e4c31f4c3201accb7c763a9e3540e27050483f..6475776c4a5dd5a6a2062af7e63a115bf75693f2 100644 |
| --- a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc |
| +++ b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc |
| @@ -260,3 +260,15 @@ TEST_F(ExternalProtocolHandlerTest, |
| ASSERT_FALSE( |
| profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty()); |
| } |
| + |
|
dominickn
2017/02/10 03:10:29
Nit: remove the extra newline
ramyasharma
2017/02/15 05:03:36
Done.
|
| + |
| +TEST_F(ExternalProtocolHandlerTest, TestClearProfileState) { |
| + base::DictionaryValue prefs; |
| + prefs.SetBoolean("tel", true); |
| + profile_->GetPrefs()->Set(prefs::kExcludedSchemes, prefs); |
| + ASSERT_FALSE( |
| + profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty()); |
| + ExternalProtocolHandler::ClearData(profile_.get()); |
| + ASSERT_TRUE( |
| + profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty()); |
| +} |