| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // TODO(mmenke): Add some checks for the import view. | 267 // TODO(mmenke): Add some checks for the import view. |
| 268 // TODO(mmenke): Add a test for a log created with --log-net-log. | 268 // TODO(mmenke): Add a test for a log created with --log-net-log. |
| 269 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsExportImportDump) { | 269 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsExportImportDump) { |
| 270 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsExportImportDump")); | 270 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsExportImportDump")); |
| 271 } | 271 } |
| 272 | 272 |
| 273 //////////////////////////////////////////////////////////////////////////////// | 273 //////////////////////////////////////////////////////////////////////////////// |
| 274 // dns_view.js | 274 // dns_view.js |
| 275 //////////////////////////////////////////////////////////////////////////////// | 275 //////////////////////////////////////////////////////////////////////////////// |
| 276 | 276 |
| 277 // TODO: These tests started timing out somewhere around webkit 98733:98738. | |
| 278 // Adds a successful lookup to the DNS cache, then clears the cache. | 277 // Adds a successful lookup to the DNS cache, then clears the cache. |
| 279 IN_PROC_BROWSER_TEST_F(NetInternalsTest, FAILS_NetInternalsDnsViewSuccess) { | 278 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsDnsViewSuccess) { |
| 280 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewSuccess")); | 279 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewSuccess")); |
| 281 } | 280 } |
| 282 | 281 |
| 283 // Adds a failed lookup to the DNS cache, then clears the cache. | 282 // Adds a failed lookup to the DNS cache, then clears the cache. |
| 284 IN_PROC_BROWSER_TEST_F(NetInternalsTest, FAILS_NetInternalsDnsViewFail) { | 283 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsDnsViewFail) { |
| 285 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewFail")); | 284 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewFail")); |
| 286 } | 285 } |
| 287 | 286 |
| 288 // Adds an expired successful lookup to the DNS cache, then clears the cache. | 287 // Adds an expired successful lookup to the DNS cache, then clears the cache. |
| 289 IN_PROC_BROWSER_TEST_F(NetInternalsTest, FAILS_NetInternalsDnsViewExpired) { | 288 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsDnsViewExpired) { |
| 290 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewExpired")); | 289 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewExpired")); |
| 291 } | 290 } |
| 292 | 291 |
| 293 // Adds two entries to the DNS cache, clears the cache, and then repeats. | 292 // Adds two entries to the DNS cache, clears the cache, and then repeats. |
| 294 IN_PROC_BROWSER_TEST_F(NetInternalsTest, FAILS_NetInternalsDnsViewAddTwoTwice) { | 293 IN_PROC_BROWSER_TEST_F(NetInternalsTest, NetInternalsDnsViewAddTwoTwice) { |
| 295 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewAddTwoTwice")); | 294 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsDnsViewAddTwoTwice")); |
| 296 } | 295 } |
| 297 | 296 |
| 298 //////////////////////////////////////////////////////////////////////////////// | 297 //////////////////////////////////////////////////////////////////////////////// |
| 299 // test_view.js | 298 // test_view.js |
| 300 //////////////////////////////////////////////////////////////////////////////// | 299 //////////////////////////////////////////////////////////////////////////////// |
| 301 | 300 |
| 302 // Runs the test suite twice, expecting a passing result the first time. Checks | 301 // Runs the test suite twice, expecting a passing result the first time. Checks |
| 303 // the first result, the order of events that occur, and the number of rows in | 302 // the first result, the order of events that occur, and the number of rows in |
| 304 // the table. | 303 // the table. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 // log_view_painter.js | 416 // log_view_painter.js |
| 418 //////////////////////////////////////////////////////////////////////////////// | 417 //////////////////////////////////////////////////////////////////////////////// |
| 419 | 418 |
| 420 // Check that we correctly remove cookies and login information. | 419 // Check that we correctly remove cookies and login information. |
| 421 IN_PROC_BROWSER_TEST_F(NetInternalsTest, | 420 IN_PROC_BROWSER_TEST_F(NetInternalsTest, |
| 422 NetInternalsLogViewPainterStripInfo) { | 421 NetInternalsLogViewPainterStripInfo) { |
| 423 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsLogViewPainterStripInfo")); | 422 EXPECT_TRUE(RunJavascriptAsyncTest("netInternalsLogViewPainterStripInfo")); |
| 424 } | 423 } |
| 425 | 424 |
| 426 } // namespace | 425 } // namespace |
| OLD | NEW |