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

Side by Side Diff: chrome/test/webdriver/commands/create_session.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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
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
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698