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

Side by Side Diff: chrome/test/webdriver/webdriver_util_mac.mm

Issue 7522024: Refactor chromedriver's script execution to reduce amount of custom Value parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 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 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/utility_functions.h" 5 #include "chrome/test/webdriver/webdriver_util.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
11 11
12 namespace webdriver { 12 namespace webdriver {
13 13
14 void GetApplicationDirs(std::vector<FilePath>* app_dirs) { 14 void GetApplicationDirs(std::vector<FilePath>* app_dirs) {
15 FilePath user_app_dir; 15 FilePath user_app_dir;
16 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir)) 16 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir))
17 app_dirs->push_back(user_app_dir); 17 app_dirs->push_back(user_app_dir);
18 FilePath local_app_dir; 18 FilePath local_app_dir;
19 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir)) 19 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir))
20 app_dirs->push_back(local_app_dir); 20 app_dirs->push_back(local_app_dir);
21 } 21 }
22 22
23 } // namespace webdriver 23 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_util.cc ('k') | chrome/test/webdriver/webdriver_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698