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

Side by Side Diff: apps/app_shim/app_shim_host_manager_browsertest_mac.mm

Issue 305973002: Rename IPC::ChannelFactory to ChannelHandleAcceptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « apps/app_shim/app_shim_host_mac.h ('k') | apps/app_shim/app_shim_host_manager_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "apps/app_shim/app_shim_host_manager_mac.h" 5 #include "apps/app_shim/app_shim_host_manager_mac.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "apps/app_shim/app_shim_messages.h" 9 #include "apps/app_shim/app_shim_messages.h"
10 #include "apps/app_shim/test/app_shim_host_manager_test_api_mac.h" 10 #include "apps/app_shim/test/app_shim_host_manager_test_api_mac.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 RunAndExitGracefully(); 198 RunAndExitGracefully();
199 EXPECT_EQ(apps::APP_SHIM_LAUNCH_REGISTER_ONLY, last_launch_type_); 199 EXPECT_EQ(apps::APP_SHIM_LAUNCH_REGISTER_ONLY, last_launch_type_);
200 EXPECT_TRUE(last_launch_files_.empty()); 200 EXPECT_TRUE(last_launch_files_.empty());
201 } 201 }
202 202
203 // Ensure the domain socket can be created in a fresh user data dir. 203 // Ensure the domain socket can be created in a fresh user data dir.
204 IN_PROC_BROWSER_TEST_F(AppShimHostManagerBrowserTest, 204 IN_PROC_BROWSER_TEST_F(AppShimHostManagerBrowserTest,
205 PRE_ReCreate) { 205 PRE_ReCreate) {
206 test::AppShimHostManagerTestApi test_api( 206 test::AppShimHostManagerTestApi test_api(
207 g_browser_process->platform_part()->app_shim_host_manager()); 207 g_browser_process->platform_part()->app_shim_host_manager());
208 EXPECT_TRUE(test_api.factory()); 208 EXPECT_TRUE(test_api.acceptor());
209 } 209 }
210 210
211 // Ensure the domain socket can be re-created after a prior browser process has 211 // Ensure the domain socket can be re-created after a prior browser process has
212 // quit. 212 // quit.
213 IN_PROC_BROWSER_TEST_F(AppShimHostManagerBrowserTest, 213 IN_PROC_BROWSER_TEST_F(AppShimHostManagerBrowserTest,
214 ReCreate) { 214 ReCreate) {
215 test::AppShimHostManagerTestApi test_api( 215 test::AppShimHostManagerTestApi test_api(
216 g_browser_process->platform_part()->app_shim_host_manager()); 216 g_browser_process->platform_part()->app_shim_host_manager());
217 EXPECT_TRUE(test_api.factory()); 217 EXPECT_TRUE(test_api.acceptor());
218 } 218 }
219 219
220 // Tests for the files created by AppShimHostManager. 220 // Tests for the files created by AppShimHostManager.
221 class AppShimHostManagerBrowserTestSocketFiles 221 class AppShimHostManagerBrowserTestSocketFiles
222 : public AppShimHostManagerBrowserTest { 222 : public AppShimHostManagerBrowserTest {
223 public: 223 public:
224 AppShimHostManagerBrowserTestSocketFiles() {} 224 AppShimHostManagerBrowserTestSocketFiles() {}
225 225
226 protected: 226 protected:
227 base::FilePath directory_in_tmp_; 227 base::FilePath directory_in_tmp_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 EXPECT_TRUE(base::PathExists(directory_in_tmp_)); 264 EXPECT_TRUE(base::PathExists(directory_in_tmp_));
265 EXPECT_TRUE(base::PathExists(symlink_path_)); 265 EXPECT_TRUE(base::PathExists(symlink_path_));
266 266
267 // Check that the symlink has been replaced. 267 // Check that the symlink has been replaced.
268 base::FilePath socket_path; 268 base::FilePath socket_path;
269 ASSERT_TRUE(base::ReadSymbolicLink(symlink_path_, &socket_path)); 269 ASSERT_TRUE(base::ReadSymbolicLink(symlink_path_, &socket_path));
270 EXPECT_EQ(app_mode::kAppShimSocketShortName, socket_path.BaseName().value()); 270 EXPECT_EQ(app_mode::kAppShimSocketShortName, socket_path.BaseName().value());
271 } 271 }
272 272
273 } // namespace 273 } // namespace
OLDNEW
« no previous file with comments | « apps/app_shim/app_shim_host_mac.h ('k') | apps/app_shim/app_shim_host_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698