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/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 "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/apps/app_shim/app_shim_host_mac.h" | 11 #include "chrome/browser/apps/app_shim/app_shim_host_mac.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
13 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
14 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
15 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 ShimSetHidden(&host_bb_, true); | 459 ShimSetHidden(&host_bb_, true); |
459 EXPECT_EQ(0, host_bb_.close_count()); | 460 EXPECT_EQ(0, host_bb_.close_count()); |
460 | 461 |
461 EXPECT_CALL(*delegate_, MaybeGetAppExtension(&profile_b_, kTestAppIdB)) | 462 EXPECT_CALL(*delegate_, MaybeGetAppExtension(&profile_b_, kTestAppIdB)) |
462 .WillRepeatedly(Return(nullptr)); | 463 .WillRepeatedly(Return(nullptr)); |
463 ShimSetHidden(&host_bb_, true); | 464 ShimSetHidden(&host_bb_, true); |
464 EXPECT_EQ(1, host_bb_.close_count()); | 465 EXPECT_EQ(1, host_bb_.close_count()); |
465 } | 466 } |
466 | 467 |
467 } // namespace apps | 468 } // namespace apps |
OLD | NEW |