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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #include "base/process_util.h" | |
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
9 #include "chrome/test/base/browser_with_test_window_test.h" | 8 #include "chrome/test/base/browser_with_test_window_test.h" |
10 #include "content/public/browser/site_instance.h" | 9 #include "content/public/browser/site_instance.h" |
11 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
12 #include "content/public/test/web_contents_tester.h" | 11 #include "content/public/test/web_contents_tester.h" |
13 | 12 |
14 using content::SiteInstance; | 13 using content::SiteInstance; |
15 using content::WebContents; | 14 using content::WebContents; |
16 using content::WebContentsTester; | 15 using content::WebContentsTester; |
17 | 16 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 EXPECT_TRUE(contents2->IsCrashed()); | 57 EXPECT_TRUE(contents2->IsCrashed()); |
59 | 58 |
60 // Selecting the second tab does not cause a load or clear the crash. | 59 // Selecting the second tab does not cause a load or clear the crash. |
61 tab_strip_model->ActivateTabAt(1, true); | 60 tab_strip_model->ActivateTabAt(1, true); |
62 EXPECT_TRUE(tab_strip_model->IsTabSelected(1)); | 61 EXPECT_TRUE(tab_strip_model->IsTabSelected(1)); |
63 EXPECT_FALSE(contents2->IsLoading()); | 62 EXPECT_FALSE(contents2->IsLoading()); |
64 EXPECT_TRUE(contents2->IsCrashed()); | 63 EXPECT_TRUE(contents2->IsCrashed()); |
65 } | 64 } |
66 | 65 |
67 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 66 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
OLD | NEW |