| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_frame/test/net/test_automation_provider.h" | 5 #include "chrome_frame/test/net/test_automation_provider.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "chrome/test/automation/automation_messages.h" | 10 #include "chrome/common/automation_messages.h" |
| 11 #include "chrome_frame/test/net/test_automation_resource_message_filter.h" | 11 #include "chrome_frame/test/net/test_automation_resource_message_filter.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // A special command line switch to just run the unit tests without CF in | 15 // A special command line switch to just run the unit tests without CF in |
| 16 // the picture. Can be useful when the harness itself needs to be debugged. | 16 // the picture. Can be useful when the harness itself needs to be debugged. |
| 17 const wchar_t kNoCfTestRun[] = L"no-cf-test-run"; | 17 const wchar_t kNoCfTestRun[] = L"no-cf-test-run"; |
| 18 | 18 |
| 19 bool CFTestsDisabled() { | 19 bool CFTestsDisabled() { |
| 20 static bool switch_present = CommandLine::ForCurrentProcess()-> | 20 static bool switch_present = CommandLine::ForCurrentProcess()-> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // static | 117 // static |
| 118 TestAutomationProvider* TestAutomationProvider::NewAutomationProvider( | 118 TestAutomationProvider* TestAutomationProvider::NewAutomationProvider( |
| 119 Profile* p, const std::string& channel, | 119 Profile* p, const std::string& channel, |
| 120 TestAutomationProviderDelegate* delegate) { | 120 TestAutomationProviderDelegate* delegate) { |
| 121 TestAutomationProvider* automation = new TestAutomationProvider(p, delegate); | 121 TestAutomationProvider* automation = new TestAutomationProvider(p, delegate); |
| 122 automation->ConnectToChannel(channel); | 122 automation->ConnectToChannel(channel); |
| 123 automation->SetExpectedTabCount(1); | 123 automation->SetExpectedTabCount(1); |
| 124 return automation; | 124 return automation; |
| 125 } | 125 } |
| OLD | NEW |