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

Side by Side Diff: chrome/test/automation/automation_proxy_uitest.cc

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (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
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.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) 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 <string> 5 #include <string>
6 6
7 #include "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "app/message_box_flags.h" 8 #include "app/message_box_flags.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/sys_info.h" 14 #include "base/sys_info.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/app/chrome_dll_resource.h" 17 #include "chrome/app/chrome_dll_resource.h"
18 #include "chrome/browser/net/url_request_slow_http_job.h" 18 #include "chrome/browser/net/url_request_slow_http_job.h"
19 #include "chrome/browser/view_ids.h" 19 #include "chrome/browser/view_ids.h"
20 #include "chrome/common/automation_messages.h"
21 #include "chrome/common/chrome_constants.h" 20 #include "chrome/common/chrome_constants.h"
22 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/json_value_serializer.h" 22 #include "chrome/common/json_value_serializer.h"
24 #include "chrome/test/automation/autocomplete_edit_proxy.h" 23 #include "chrome/test/automation/autocomplete_edit_proxy.h"
24 #include "chrome/test/automation/automation_messages.h"
25 #include "chrome/test/automation/automation_proxy_uitest.h" 25 #include "chrome/test/automation/automation_proxy_uitest.h"
26 #include "chrome/test/automation/browser_proxy.h" 26 #include "chrome/test/automation/browser_proxy.h"
27 #include "chrome/test/automation/tab_proxy.h" 27 #include "chrome/test/automation/tab_proxy.h"
28 #include "chrome/test/automation/window_proxy.h" 28 #include "chrome/test/automation/window_proxy.h"
29 #include "chrome/test/ui_test_utils.h" 29 #include "chrome/test/ui_test_utils.h"
30 #include "chrome/test/ui/ui_test.h" 30 #include "chrome/test/ui/ui_test.h"
31 #include "gfx/rect.h" 31 #include "gfx/rect.h"
32 #include "net/base/net_util.h" 32 #include "net/base/net_util.h"
33 #include "net/test/test_server.h" 33 #include "net/test/test_server.h"
34 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING 34 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 1497
1498 // Allow some time for the popup to show up and close. 1498 // Allow some time for the popup to show up and close.
1499 PlatformThread::Sleep(sleep_timeout_ms()); 1499 PlatformThread::Sleep(sleep_timeout_ms());
1500 1500
1501 std::wstring expected(L"string"); 1501 std::wstring expected(L"string");
1502 std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); 1502 std::wstring jscript = CreateJSString(L"\"" + expected + L"\"");
1503 std::wstring actual; 1503 std::wstring actual;
1504 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); 1504 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual));
1505 ASSERT_EQ(expected, actual); 1505 ASSERT_EQ(expected, actual);
1506 } 1506 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698