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

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

Issue 585123004: Mac: Give app_shim code a nicer home (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: various cleanups Created 6 years, 3 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 "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 <vector> 7 #include <vector>
8 8
9 #include "apps/app_shim/app_shim_host_mac.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/apps/app_shim/app_shim_host_mac.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace apps { 18 namespace apps {
19 19
20 using extensions::Extension; 20 using extensions::Extension;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 .WillRepeatedly(Return(&profile_a_)); 387 .WillRepeatedly(Return(&profile_a_));
388 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _)) 388 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _))
389 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback)); 389 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback));
390 NormalLaunch(&host_aa_); 390 NormalLaunch(&host_aa_);
391 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA)); 391 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA));
392 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_); 392 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_);
393 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA)); 393 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA));
394 } 394 }
395 395
396 } // namespace apps 396 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698