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

Side by Side Diff: chrome/test/ui/omnibox_uitest.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <math.h> 5 #include <math.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/perftimer.h" 11 #include "base/perftimer.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/app/chrome_dll_resource.h" 14 #include "chrome/app/chrome_command_ids.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/libxml_utils.h" 16 #include "chrome/common/libxml_utils.h"
17 #include "chrome/test/automation/autocomplete_edit_proxy.h" 17 #include "chrome/test/automation/autocomplete_edit_proxy.h"
18 #include "chrome/test/automation/automation_proxy.h" 18 #include "chrome/test/automation/automation_proxy.h"
19 #include "chrome/test/automation/browser_proxy.h" 19 #include "chrome/test/automation/browser_proxy.h"
20 #include "chrome/test/automation/window_proxy.h" 20 #include "chrome/test/automation/window_proxy.h"
21 #include "chrome/test/ui/ui_test.h" 21 #include "chrome/test/ui/ui_test.h"
22 22
23 const char kRunOmniboxTest[] = "run_omnibox_test"; 23 const char kRunOmniboxTest[] = "run_omnibox_test";
24 24
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 wprintf(L"__om_query_count = %d\n", query_count_); 173 wprintf(L"__om_query_count = %d\n", query_count_);
174 wprintf(L"__om_query_timeouts = %d\n", query_timeouts_); 174 wprintf(L"__om_query_timeouts = %d\n", query_timeouts_);
175 wprintf(L"__om_time_per_query_avg = %d\n", mean); 175 wprintf(L"__om_time_per_query_avg = %d\n", mean);
176 // Use the equation stddev = sqrt(Sum(x_i^2)/N - mean^2). 176 // Use the equation stddev = sqrt(Sum(x_i^2)/N - mean^2).
177 wprintf(L"__om_time_per_query_stddev = %d\n", static_cast<int64>( 177 wprintf(L"__om_time_per_query_stddev = %d\n", static_cast<int64>(
178 sqrt(1.0 * time_squared_ / query_count_ - mean * mean))); 178 sqrt(1.0 * time_squared_ / query_count_ - mean * mean)));
179 wprintf(L"__om_time_per_query_max = %d\n", time_max_); 179 wprintf(L"__om_time_per_query_max = %d\n", time_max_);
180 wprintf(L"__om_time_per_query_min = %d\n", time_min_); 180 wprintf(L"__om_time_per_query_min = %d\n", time_min_);
181 wprintf(L"__om_score = %.4f\n", 100.0 * score_ / max_score_); 181 wprintf(L"__om_score = %.4f\n", 100.0 * score_ / max_score_);
182 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698