OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/environment.h" | 5 #include "base/environment.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 base::FilePath(FILE_PATH_LITERAL("on_before_unloader.html"))), | 50 base::FilePath(FILE_PATH_LITERAL("on_before_unloader.html"))), |
51 ui_test_utils::GetTestFilePath(kCurrentDir, | 51 ui_test_utils::GetTestFilePath(kCurrentDir, |
52 base::FilePath(FILE_PATH_LITERAL("animated-gifs.html"))), | 52 base::FilePath(FILE_PATH_LITERAL("animated-gifs.html"))), |
53 ui_test_utils::GetTestFilePath(kCurrentDir, | 53 ui_test_utils::GetTestFilePath(kCurrentDir, |
54 base::FilePath(FILE_PATH_LITERAL("french_page.html"))), | 54 base::FilePath(FILE_PATH_LITERAL("french_page.html"))), |
55 ui_test_utils::GetTestFilePath(kCurrentDir, | 55 ui_test_utils::GetTestFilePath(kCurrentDir, |
56 base::FilePath(FILE_PATH_LITERAL("setcookie.html"))), | 56 base::FilePath(FILE_PATH_LITERAL("setcookie.html"))), |
57 }; | 57 }; |
58 | 58 |
59 for (size_t i = 0; i < arraysize(test_cases); i++) { | 59 for (size_t i = 0; i < arraysize(test_cases); i++) { |
60 ASSERT_TRUE(file_util::PathExists(test_cases[i])); | 60 ASSERT_TRUE(base::PathExists(test_cases[i])); |
61 for (size_t j = 0; j < 5; j++) { | 61 for (size_t j = 0; j < 5; j++) { |
62 ASSERT_TRUE(browser_proxy->AppendTab( | 62 ASSERT_TRUE(browser_proxy->AppendTab( |
63 net::FilePathToFileURL(test_cases[i]))); | 63 net::FilePathToFileURL(test_cases[i]))); |
64 } | 64 } |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 void RunShutdownTest(const char* graph, const char* trace, | 68 void RunShutdownTest(const char* graph, const char* trace, |
69 bool important, TestSize test_size, | 69 bool important, TestSize test_size, |
70 ProxyLauncher::ShutdownType shutdown_type) { | 70 ProxyLauncher::ShutdownType shutdown_type) { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding | 161 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding |
162 #endif | 162 #endif |
163 | 163 |
164 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { | 164 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { |
165 RunShutdownTest("shutdown", "twentytabs-session-ending", | 165 RunShutdownTest("shutdown", "twentytabs-session-ending", |
166 true, /* important */ TWENTY_TABS, | 166 true, /* important */ TWENTY_TABS, |
167 ProxyLauncher::SESSION_ENDING); | 167 ProxyLauncher::SESSION_ENDING); |
168 } | 168 } |
169 | 169 |
170 } // namespace | 170 } // namespace |
OLD | NEW |