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/webdriver_util.h" 6 7 #import <Foundation/Foundation.h> 8 9 #include "base/files/file_path.h" 10 #include "base/mac/foundation_util.h" 11 12 namespace webdriver { 13 14 void GetApplicationDirs(std::vector<base::FilePath>* app_dirs) { 15 base::FilePath user_app_dir; 16 if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir)) 17 app_dirs->push_back(user_app_dir); 18 base::FilePath local_app_dir; 19 if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir)) 20 app_dirs->push_back(local_app_dir); 21 } 22 23 } // namespace webdriver 24