| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser/apps/app_shim/app_shim_host_manager_mac.h" | 5 #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" |
| 6 | 6 |
| 7 #include <unistd.h> | 7 #include <unistd.h> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/message_loop/message_loop.h" |
| 12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 13 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 14 #include "chrome/browser/apps/app_shim/app_shim_handler_mac.h" | 15 #include "chrome/browser/apps/app_shim/app_shim_handler_mac.h" |
| 15 #include "chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h
" | 16 #include "chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h
" |
| 16 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 20 #include "chrome/common/mac/app_mode_common.h" | 21 #include "chrome/common/mac/app_mode_common.h" |
| 21 #include "chrome/common/mac/app_shim_messages.h" | 22 #include "chrome/common/mac/app_shim_messages.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ASSERT_TRUE(base::ReadSymbolicLink(symlink_path_, &socket_path)); | 291 ASSERT_TRUE(base::ReadSymbolicLink(symlink_path_, &socket_path)); |
| 291 EXPECT_EQ(app_mode::kAppShimSocketShortName, socket_path.BaseName().value()); | 292 EXPECT_EQ(app_mode::kAppShimSocketShortName, socket_path.BaseName().value()); |
| 292 | 293 |
| 293 // Check that the RunningChromeVersion file is correctly written. | 294 // Check that the RunningChromeVersion file is correctly written. |
| 294 base::FilePath version; | 295 base::FilePath version; |
| 295 EXPECT_TRUE(base::ReadSymbolicLink(version_path_, &version)); | 296 EXPECT_TRUE(base::ReadSymbolicLink(version_path_, &version)); |
| 296 EXPECT_EQ(version_info::GetVersionNumber(), version.value()); | 297 EXPECT_EQ(version_info::GetVersionNumber(), version.value()); |
| 297 } | 298 } |
| 298 | 299 |
| 299 } // namespace | 300 } // namespace |
| OLD | NEW |