| 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 "apps/app_shim/extension_app_shim_handler_mac.h" | 5 #include "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" | 9 #include "apps/app_shim/app_shim_host_mac.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/common/extensions/extension.h" | |
| 13 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
| 14 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.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; |
| 21 typedef ShellWindowRegistry::ShellWindowList ShellWindowList; | 21 typedef ShellWindowRegistry::ShellWindowList ShellWindowList; |
| 22 | 22 |
| 23 using ::testing::_; | 23 using ::testing::_; |
| 24 using ::testing::Invoke; | 24 using ::testing::Invoke; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 .WillRepeatedly(Return(&profile_a_)); | 366 .WillRepeatedly(Return(&profile_a_)); |
| 367 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _)) | 367 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _)) |
| 368 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback)); | 368 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback)); |
| 369 NormalLaunch(&host_aa_); | 369 NormalLaunch(&host_aa_); |
| 370 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA)); | 370 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA)); |
| 371 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_); | 371 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_); |
| 372 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA)); | 372 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA)); |
| 373 } | 373 } |
| 374 | 374 |
| 375 } // namespace apps | 375 } // namespace apps |
| OLD | NEW |