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

Side by Side Diff: chrome/test/perf/frame_rate/frame_rate_tests.cc

Issue 7744031: Remove obsolete test timeouts and convert callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/perf/dromaeo_benchmark_uitest.cc ('k') | chrome/test/perf/page_cycler_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 5 #include <map>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, 48 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
49 tab->NavigateToURL(net::FilePathToFileURL(test_path))); 49 tab->NavigateToURL(net::FilePathToFileURL(test_path)));
50 50
51 // Start the tests. 51 // Start the tests.
52 ASSERT_TRUE(tab->NavigateToURLAsync(GURL("javascript:__start_all();"))); 52 ASSERT_TRUE(tab->NavigateToURLAsync(GURL("javascript:__start_all();")));
53 53
54 // Block until the tests completes. 54 // Block until the tests completes.
55 ASSERT_TRUE(WaitUntilJavaScriptCondition( 55 ASSERT_TRUE(WaitUntilJavaScriptCondition(
56 tab, L"", L"window.domAutomationController.send(!__running_all);", 56 tab, L"", L"window.domAutomationController.send(!__running_all);",
57 TestTimeouts::huge_test_timeout_ms())); 57 TestTimeouts::large_test_timeout_ms()));
58 58
59 // Read out the results. 59 // Read out the results.
60 std::wstring json; 60 std::wstring json;
61 ASSERT_TRUE(tab->ExecuteAndExtractString( 61 ASSERT_TRUE(tab->ExecuteAndExtractString(
62 L"", 62 L"",
63 L"window.domAutomationController.send(" 63 L"window.domAutomationController.send("
64 L"JSON.stringify(__calc_results_total()));", 64 L"JSON.stringify(__calc_results_total()));",
65 &json)); 65 &json));
66 66
67 std::map<std::string, std::string> results; 67 std::map<std::string, std::string> results;
(...skipping 30 matching lines...) Expand all
98 TEST_F(FrameRateTest, content) { \ 98 TEST_F(FrameRateTest, content) { \
99 RunTest(#content, ""); \ 99 RunTest(#content, ""); \
100 } \ 100 } \
101 TEST_F(FrameRateTest_Reference, content) { \ 101 TEST_F(FrameRateTest_Reference, content) { \
102 RunTest(#content, "_ref"); \ 102 RunTest(#content, "_ref"); \
103 } 103 }
104 FRAME_RATE_TEST(blank); 104 FRAME_RATE_TEST(blank);
105 FRAME_RATE_TEST(googleblog); 105 FRAME_RATE_TEST(googleblog);
106 106
107 } // namespace 107 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/perf/dromaeo_benchmark_uitest.cc ('k') | chrome/test/perf/page_cycler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698