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

Side by Side Diff: chrome/test/chromedriver/server/http_handler.cc

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 months 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromedriver/server/http_handler.h" 5 #include "chrome/test/chromedriver/server/http_handler.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/test/chromedriver/chrome/status.h"
13 #include "chrome/test/chromedriver/command_executor.h" 14 #include "chrome/test/chromedriver/command_executor.h"
14 #include "chrome/test/chromedriver/command_names.h" 15 #include "chrome/test/chromedriver/command_names.h"
15 #include "chrome/test/chromedriver/server/http_response.h" 16 #include "chrome/test/chromedriver/server/http_response.h"
16 #include "chrome/test/chromedriver/status.h"
17 #include "chrome/test/chromedriver/util.h" 17 #include "chrome/test/chromedriver/util.h"
18 18
19 namespace { 19 namespace {
20 20
21 const char kShutdownPath[] = "shutdown"; 21 const char kShutdownPath[] = "shutdown";
22 22
23 } // namespace 23 } // namespace
24 24
25 HttpRequest::HttpRequest(HttpMethod method, 25 HttpRequest::HttpRequest(HttpMethod method,
26 const std::string& path, 26 const std::string& path,
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 params.SetString(name, path_parts[i]); 373 params.SetString(name, path_parts[i]);
374 } else if (command_path_parts[i] != path_parts[i]) { 374 } else if (command_path_parts[i] != path_parts[i]) {
375 return false; 375 return false;
376 } 376 }
377 } 377 }
378 out_params->MergeDictionary(&params); 378 out_params->MergeDictionary(&params);
379 return true; 379 return true;
380 } 380 }
381 381
382 } // namespace 382 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/server/chromedriver_server.cc ('k') | chrome/test/chromedriver/server/http_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698