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

Side by Side Diff: chrome_frame/test/ui_test.cc

Issue 12211108: Rename FilePath -> base::FilePath in various toplevel directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_frame/test/test_with_web_server.cc ('k') | chrome_frame/test/urlmon_moniker_unittest.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) 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 <mshtmcid.h> 5 #include <mshtmcid.h>
6 #include <string> 6 #include <string>
7 7
8 #include "base/test/test_file_util.h" 8 #include "base/test/test_file_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/win/scoped_bstr.h" 10 #include "base/win/scoped_bstr.h"
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const char* kSaveDlgCaption = "Save As"; 464 const char* kSaveDlgCaption = "Save As";
465 EXPECT_CALL(acc_observer_, 465 EXPECT_CALL(acc_observer_,
466 OnAccDocLoad(TabContentsTitleEq(L"Save As download test"))) 466 OnAccDocLoad(TabContentsTitleEq(L"Save As download test")))
467 .WillOnce(testing::DoAll( 467 .WillOnce(testing::DoAll(
468 WatchWindow(&win_observer_mock, kSaveDlgCaption, ""), 468 WatchWindow(&win_observer_mock, kSaveDlgCaption, ""),
469 AccRightClick(AccObjectMatcher(L"", role)))); 469 AccRightClick(AccObjectMatcher(L"", role))));
470 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) 470 EXPECT_CALL(acc_observer_, OnMenuPopup(_))
471 .WillOnce(AccLeftClick(AccObjectMatcher(menu_item_name))); 471 .WillOnce(AccLeftClick(AccObjectMatcher(menu_item_name)));
472 472
473 // Get safe download name using temporary file. 473 // Get safe download name using temporary file.
474 FilePath temp_file_path; 474 base::FilePath temp_file_path;
475 ASSERT_TRUE(file_util::CreateTemporaryFile(&temp_file_path)); 475 ASSERT_TRUE(file_util::CreateTemporaryFile(&temp_file_path));
476 ASSERT_TRUE(file_util::DieFileDie(temp_file_path, false)); 476 ASSERT_TRUE(file_util::DieFileDie(temp_file_path, false));
477 temp_file_path = temp_file_path.ReplaceExtension(file_ext); 477 temp_file_path = temp_file_path.ReplaceExtension(file_ext);
478 478
479 AccObjectMatcher file_name_box(L"File name:", L"editable text"); 479 AccObjectMatcher file_name_box(L"File name:", L"editable text");
480 EXPECT_CALL(win_observer_mock, OnWindowOpen(_)) 480 EXPECT_CALL(win_observer_mock, OnWindowOpen(_))
481 .WillOnce(testing::DoAll( 481 .WillOnce(testing::DoAll(
482 AccSendCharMessage(file_name_box, L'a'), 482 AccSendCharMessage(file_name_box, L'a'),
483 AccSetValue(file_name_box, temp_file_path.value()), 483 AccSetValue(file_name_box, temp_file_path.value()),
484 AccDoDefaultAction(AccObjectMatcher(L"Save", L"push button")))); 484 AccDoDefaultAction(AccObjectMatcher(L"Save", L"push button"))));
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) 1058 EXPECT_CALL(acc_observer_, OnMenuPopup(_))
1059 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward"))); 1059 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward")));
1060 1060
1061 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3))) 1061 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3)))
1062 .WillOnce(CloseBrowserMock(&ie_mock_)); 1062 .WillOnce(CloseBrowserMock(&ie_mock_));
1063 1063
1064 LaunchIENavigateAndLoop(page1, kChromeFrameVeryLongNavigationTimeout); 1064 LaunchIENavigateAndLoop(page1, kChromeFrameVeryLongNavigationTimeout);
1065 } 1065 }
1066 1066
1067 } // namespace chrome_frame_test 1067 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/test/test_with_web_server.cc ('k') | chrome_frame/test/urlmon_moniker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698