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

Side by Side Diff: chrome/browser/external_protocol/external_protocol_handler_unittest.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698