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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 else | 541 else |
542 NOTREACHED() << "Unknown param: \"" << key << "\""; | 542 NOTREACHED() << "Unknown param: \"" << key << "\""; |
543 } | 543 } |
544 | 544 |
545 if (fail_class == "LevelDBTransaction") { | 545 if (fail_class == "LevelDBTransaction") { |
546 failure_class = FAIL_CLASS_LEVELDB_TRANSACTION; | 546 failure_class = FAIL_CLASS_LEVELDB_TRANSACTION; |
547 if (fail_method == "Get") | 547 if (fail_method == "Get") |
548 failure_method = FAIL_METHOD_GET; | 548 failure_method = FAIL_METHOD_GET; |
549 else if (fail_method == "Commit") | 549 else if (fail_method == "Commit") |
550 failure_method = FAIL_METHOD_COMMIT; | 550 failure_method = FAIL_METHOD_COMMIT; |
551 else { | 551 else |
552 NOTREACHED() << "Unknown method: \"" << fail_method << "\""; | 552 NOTREACHED() << "Unknown method: \"" << fail_method << "\""; |
553 } | |
554 } else if (fail_class == "LevelDBIterator") { | 553 } else if (fail_class == "LevelDBIterator") { |
555 failure_class = FAIL_CLASS_LEVELDB_ITERATOR; | 554 failure_class = FAIL_CLASS_LEVELDB_ITERATOR; |
556 if (fail_method == "Seek") | 555 if (fail_method == "Seek") |
557 failure_method = FAIL_METHOD_SEEK; | 556 failure_method = FAIL_METHOD_SEEK; |
558 else | 557 else |
559 NOTREACHED() << "Unknown method: \"" << fail_method << "\""; | 558 NOTREACHED() << "Unknown method: \"" << fail_method << "\""; |
560 } else { | 559 } else { |
561 NOTREACHED() << "Unknown class: \"" << fail_class << "\""; | 560 NOTREACHED() << "Unknown class: \"" << fail_class << "\""; |
562 } | 561 } |
563 | 562 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest | 733 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest |
735 #else | 734 #else |
736 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest | 735 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest |
737 #endif | 736 #endif |
738 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 737 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
739 MAYBE_RenderThreadShutdownTest) { | 738 MAYBE_RenderThreadShutdownTest) { |
740 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 739 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
741 } | 740 } |
742 | 741 |
743 } // namespace content | 742 } // namespace content |
OLD | NEW |