| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test/webdriver/commands/create_session.h" | 5 #include "chrome/test/webdriver/commands/create_session.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/test/webdriver/commands/response.h" | 13 #include "chrome/test/webdriver/commands/response.h" |
| 14 #include "chrome/test/webdriver/webdriver_error.h" | 14 #include "chrome/test/webdriver/webdriver_error.h" |
| 15 #include "chrome/test/webdriver/webdriver_session.h" | 15 #include "chrome/test/webdriver/webdriver_session.h" |
| 16 #include "chrome/test/webdriver/webdriver_session_manager.h" | 16 #include "chrome/test/webdriver/webdriver_session_manager.h" |
| 17 | 17 |
| 18 namespace webdriver { | 18 namespace webdriver { |
| 19 | 19 |
| 20 CreateSession::CreateSession(const std::vector<std::string>& path_segments, | 20 CreateSession::CreateSession(const std::vector<std::string>& path_segments, |
| 21 const DictionaryValue* const parameters) | 21 const DictionaryValue* const parameters) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 46 // difficult, and returning the hostname causes perf problems with the python | 46 // difficult, and returning the hostname causes perf problems with the python |
| 47 // bindings on Windows. | 47 // bindings on Windows. |
| 48 std::ostringstream stream; | 48 std::ostringstream stream; |
| 49 stream << SessionManager::GetInstance()->url_base() << "/session/" | 49 stream << SessionManager::GetInstance()->url_base() << "/session/" |
| 50 << session->id(); | 50 << session->id(); |
| 51 response->SetStatus(kSeeOther); | 51 response->SetStatus(kSeeOther); |
| 52 response->SetValue(Value::CreateStringValue(stream.str())); | 52 response->SetValue(Value::CreateStringValue(stream.str())); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace webdriver | 55 } // namespace webdriver |
| OLD | NEW |