| 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/process_singleton_subclass.h" | 5 #include "chrome_frame/test/net/process_singleton_subclass.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "chrome/browser/browser_process_impl.h" | 10 #include "chrome/browser/browser_process_impl.h" |
| 11 #include "chrome/browser/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
| 13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome_frame/test/net/test_automation_provider.h" | 15 #include "chrome_frame/test/net/test_automation_provider.h" |
| 16 #include "chrome_frame/function_stub.h" | 16 #include "chrome_frame/function_stub.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 ProcessSingletonSubclass::ProcessSingletonSubclass( | 19 ProcessSingletonSubclass::ProcessSingletonSubclass( |
| 20 ProcessSingletonSubclassDelegate* delegate) | 20 ProcessSingletonSubclassDelegate* delegate) |
| 21 : stub_(NULL), delegate_(delegate), original_wndproc_(NULL) { | 21 : stub_(NULL), delegate_(delegate), original_wndproc_(NULL) { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 CommandLine parsed_command_line = CommandLine::FromString(cmd_line); | 102 CommandLine parsed_command_line = CommandLine::FromString(cmd_line); |
| 103 std::string channel_id = parsed_command_line.GetSwitchValueASCII( | 103 std::string channel_id = parsed_command_line.GetSwitchValueASCII( |
| 104 switches::kAutomationClientChannelID); | 104 switches::kAutomationClientChannelID); |
| 105 EXPECT_FALSE(channel_id.empty()); | 105 EXPECT_FALSE(channel_id.empty()); |
| 106 | 106 |
| 107 delegate_->OnConnectAutomationProviderToChannel(channel_id); | 107 delegate_->OnConnectAutomationProviderToChannel(channel_id); |
| 108 } | 108 } |
| 109 return TRUE; | 109 return TRUE; |
| 110 } | 110 } |
| OLD | NEW |