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

Side by Side Diff: chrome/browser/apps/app_shim/extension_app_shim_handler_mac_unittest.cc

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 years, 8 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
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 "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" 5 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 MOCK_METHOD1(ProfileExistsForPath, bool(const base::FilePath&)); 34 MOCK_METHOD1(ProfileExistsForPath, bool(const base::FilePath&));
35 MOCK_METHOD1(ProfileForPath, Profile*(const base::FilePath&)); 35 MOCK_METHOD1(ProfileForPath, Profile*(const base::FilePath&));
36 MOCK_METHOD2(LoadProfileAsync, 36 MOCK_METHOD2(LoadProfileAsync,
37 void(const base::FilePath&, 37 void(const base::FilePath&,
38 base::Callback<void(Profile*)>)); 38 base::Callback<void(Profile*)>));
39 MOCK_METHOD1(IsProfileLockedForPath, bool(const base::FilePath&)); 39 MOCK_METHOD1(IsProfileLockedForPath, bool(const base::FilePath&));
40 40
41 MOCK_METHOD2(GetWindows, AppWindowList(Profile*, const std::string&)); 41 MOCK_METHOD2(GetWindows, AppWindowList(Profile*, const std::string&));
42 42
43 MOCK_METHOD2(MaybeGetAppExtension, 43 MOCK_METHOD2(MaybeGetAppExtension,
44 const Extension*(Profile*, const std::string&)); 44 const Extension*(content::BrowserContext*, const std::string&));
45 MOCK_METHOD3(EnableExtension, void(Profile*, 45 MOCK_METHOD3(EnableExtension, void(Profile*,
46 const std::string&, 46 const std::string&,
47 const base::Callback<void()>&)); 47 const base::Callback<void()>&));
48 MOCK_METHOD3(LaunchApp, 48 MOCK_METHOD3(LaunchApp,
49 void(Profile*, 49 void(Profile*,
50 const Extension*, 50 const Extension*,
51 const std::vector<base::FilePath>&)); 51 const std::vector<base::FilePath>&));
52 MOCK_METHOD2(LaunchShim, void(Profile*, const Extension*)); 52 MOCK_METHOD2(LaunchShim, void(Profile*, const Extension*));
53 MOCK_METHOD0(LaunchUserManager, void()); 53 MOCK_METHOD0(LaunchUserManager, void());
54 54
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 ShimSetHidden(&host_bb_, true); 459 ShimSetHidden(&host_bb_, true);
460 EXPECT_EQ(0, host_bb_.close_count()); 460 EXPECT_EQ(0, host_bb_.close_count());
461 461
462 EXPECT_CALL(*delegate_, MaybeGetAppExtension(&profile_b_, kTestAppIdB)) 462 EXPECT_CALL(*delegate_, MaybeGetAppExtension(&profile_b_, kTestAppIdB))
463 .WillRepeatedly(Return(nullptr)); 463 .WillRepeatedly(Return(nullptr));
464 ShimSetHidden(&host_bb_, true); 464 ShimSetHidden(&host_bb_, true);
465 EXPECT_EQ(1, host_bb_.close_count()); 465 EXPECT_EQ(1, host_bb_.close_count());
466 } 466 }
467 467
468 } // namespace apps 468 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698