| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" |
| 7 #include "content/test/test_browser_thread.h" | 8 #include "content/test/test_browser_thread.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 10 |
| 10 using content::BrowserThread; | 11 using content::BrowserThread; |
| 11 | 12 |
| 12 class FakeExternalProtocolHandlerWorker | 13 class FakeExternalProtocolHandlerWorker |
| 13 : public ShellIntegration::DefaultProtocolClientWorker { | 14 : public ShellIntegration::DefaultProtocolClientWorker { |
| 14 public: | 15 public: |
| 15 FakeExternalProtocolHandlerWorker( | 16 FakeExternalProtocolHandlerWorker( |
| 16 ShellIntegration::DefaultWebClientObserver* observer, | 17 ShellIntegration::DefaultWebClientObserver* observer, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 DoTest(ExternalProtocolHandler::UNKNOWN, | 175 DoTest(ExternalProtocolHandler::UNKNOWN, |
| 175 ShellIntegration::NOT_DEFAULT_WEB_CLIENT, | 176 ShellIntegration::NOT_DEFAULT_WEB_CLIENT, |
| 176 true, false, false); | 177 true, false, false); |
| 177 } | 178 } |
| 178 | 179 |
| 179 TEST_F(ExternalProtocolHandlerTest, TestLaunchSchemeUnknownChromeUnknown) { | 180 TEST_F(ExternalProtocolHandlerTest, TestLaunchSchemeUnknownChromeUnknown) { |
| 180 DoTest(ExternalProtocolHandler::UNKNOWN, | 181 DoTest(ExternalProtocolHandler::UNKNOWN, |
| 181 ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT, | 182 ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT, |
| 182 true, false, false); | 183 true, false, false); |
| 183 } | 184 } |
| OLD | NEW |