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

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

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/webdriver/commands/appcache_status_command.h"
6
7 #include <string>
8
9 #include "chrome/test/webdriver/commands/response.h"
10 #include "chrome/test/webdriver/webdriver_error.h"
11 #include "chrome/test/webdriver/webdriver_session.h"
12
13 namespace webdriver {
14
15 AppCacheStatusCommand::AppCacheStatusCommand(
16 const std::vector<std::string>& path_segments,
17 const DictionaryValue* const parameters)
18 : WebDriverCommand(path_segments, parameters) {}
19
20 AppCacheStatusCommand::~AppCacheStatusCommand() {}
21
22 bool AppCacheStatusCommand::DoesGet() {
23 return true;
24 }
25
26 void AppCacheStatusCommand::ExecuteGet(Response* const response) {
27 int status;
28 Error* error = session_->GetAppCacheStatus(&status);
29 if (error) {
30 response->SetError(error);
31 return;
32 }
33 response->SetValue(new base::FundamentalValue(status));
34 }
35
36 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/commands/appcache_status_command.h ('k') | chrome/test/webdriver/commands/browser_connection_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698