| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" |
| 5 #include "components/guest_view/browser/guest_view_manager.h" | 6 #include "components/guest_view/browser/guest_view_manager.h" |
| 6 #include "components/guest_view/browser/guest_view_manager_delegate.h" | 7 #include "components/guest_view/browser/guest_view_manager_delegate.h" |
| 7 #include "components/guest_view/browser/test_guest_view_manager.h" | 8 #include "components/guest_view/browser/test_guest_view_manager.h" |
| 8 #include "content/public/test/test_browser_context.h" | 9 #include "content/public/test/test_browser_context.h" |
| 9 #include "content/public/test/test_renderer_host.h" | 10 #include "content/public/test/test_renderer_host.h" |
| 10 #include "content/public/test/web_contents_tester.h" | 11 #include "content/public/test/web_contents_tester.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 using content::WebContents; | 14 using content::WebContents; |
| 14 using content::WebContentsTester; | 15 using content::WebContentsTester; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 EXPECT_EQ(3, manager->last_instance_id_removed()); | 76 EXPECT_EQ(3, manager->last_instance_id_removed()); |
| 76 | 77 |
| 77 EXPECT_FALSE(manager->CanUseGuestInstanceID(1)); | 78 EXPECT_FALSE(manager->CanUseGuestInstanceID(1)); |
| 78 EXPECT_FALSE(manager->CanUseGuestInstanceID(2)); | 79 EXPECT_FALSE(manager->CanUseGuestInstanceID(2)); |
| 79 EXPECT_FALSE(manager->CanUseGuestInstanceID(3)); | 80 EXPECT_FALSE(manager->CanUseGuestInstanceID(3)); |
| 80 | 81 |
| 81 EXPECT_EQ(0u, manager->GetNumRemovedInstanceIDs()); | 82 EXPECT_EQ(0u, manager->GetNumRemovedInstanceIDs()); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace guest_view | 85 } // namespace guest_view |
| OLD | NEW |