Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_browsertest.cc

Issue 1113573002: Maintain minimal error response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/barrier_closure.h" 5 #include "base/barrier_closure.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/browser/gpu/compositor_util.h" 10 #include "content/browser/gpu/compositor_util.h"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // whether the implementation is broken, or a test bot is in a bad state. 646 // whether the implementation is broken, or a test bot is in a bad state.
647 #define CASE_LOG_READBACK_WARNING(enum_value) \ 647 #define CASE_LOG_READBACK_WARNING(enum_value) \
648 case enum_value: \ 648 case enum_value: \
649 LOG(WARNING) << "Readback attempt failed (render frame #" \ 649 LOG(WARNING) << "Readback attempt failed (render frame #" \
650 << last_frame_number << "). Reason: " #enum_value; \ 650 << last_frame_number << "). Reason: " #enum_value; \
651 break 651 break
652 switch (readback_response_) { 652 switch (readback_response_) {
653 case READBACK_SUCCESS: 653 case READBACK_SUCCESS:
654 break; 654 break;
655 CASE_LOG_READBACK_WARNING(READBACK_FAILED); 655 CASE_LOG_READBACK_WARNING(READBACK_FAILED);
656 CASE_LOG_READBACK_WARNING(READBACK_FORMAT_NOT_SUPPORTED);
657 CASE_LOG_READBACK_WARNING(READBACK_NOT_SUPPORTED);
658 CASE_LOG_READBACK_WARNING(READBACK_SURFACE_UNAVAILABLE); 656 CASE_LOG_READBACK_WARNING(READBACK_SURFACE_UNAVAILABLE);
659 CASE_LOG_READBACK_WARNING(READBACK_MEMORY_ALLOCATION_FAILURE); 657 CASE_LOG_READBACK_WARNING(READBACK_BITMAP_ALLOCATION_FAILURE);
660 CASE_LOG_READBACK_WARNING(READBACK_NO_TEST_COLORS); 658 CASE_LOG_READBACK_WARNING(READBACK_NO_TEST_COLORS);
661 CASE_LOG_READBACK_WARNING(READBACK_TO_VIDEO_FRAME_FAILED); 659 CASE_LOG_READBACK_WARNING(READBACK_TO_VIDEO_FRAME_FAILED);
662 default: 660 default:
663 LOG(ERROR) 661 LOG(ERROR)
664 << "Invalid readback response value: " << readback_response_; 662 << "Invalid readback response value: " << readback_response_;
665 NOTREACHED(); 663 NOTREACHED();
666 } 664 }
667 } while (readback_response_ != READBACK_SUCCESS); 665 } while (readback_response_ != READBACK_SUCCESS);
668 } 666 }
669 667
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 kTestCompositingModes); 956 kTestCompositingModes);
959 INSTANTIATE_TEST_CASE_P( 957 INSTANTIATE_TEST_CASE_P(
960 GLAndSoftwareCompositing, 958 GLAndSoftwareCompositing,
961 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI, 959 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI,
962 kTestCompositingModes); 960 kTestCompositingModes);
963 961
964 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 962 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
965 963
966 } // namespace 964 } // namespace
967 } // namespace content 965 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698