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

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

Issue 99923002: Move temp file functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 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/file_util.h" 8 #include "base/file_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/test_file_util.h" 10 #include "base/test/test_file_util.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 OnAccDocLoad(TabContentsTitleEq(initial_url, 490 OnAccDocLoad(TabContentsTitleEq(initial_url,
491 L"Save As download test"))) 491 L"Save As download test")))
492 .WillOnce(testing::DoAll( 492 .WillOnce(testing::DoAll(
493 WatchWindow(&win_observer_mock, kSaveDlgCaption, ""), 493 WatchWindow(&win_observer_mock, kSaveDlgCaption, ""),
494 AccRightClick(AccObjectMatcher(L"", role)))); 494 AccRightClick(AccObjectMatcher(L"", role))));
495 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) 495 EXPECT_CALL(acc_observer_, OnMenuPopup(_))
496 .WillOnce(AccLeftClick(AccObjectMatcher(menu_item_name))); 496 .WillOnce(AccLeftClick(AccObjectMatcher(menu_item_name)));
497 497
498 // Get safe download name using temporary file. 498 // Get safe download name using temporary file.
499 base::FilePath temp_file_path; 499 base::FilePath temp_file_path;
500 ASSERT_TRUE(file_util::CreateTemporaryFile(&temp_file_path)); 500 ASSERT_TRUE(base::CreateTemporaryFile(&temp_file_path));
501 ASSERT_TRUE(file_util::DieFileDie(temp_file_path, false)); 501 ASSERT_TRUE(file_util::DieFileDie(temp_file_path, false));
502 temp_file_path = temp_file_path.ReplaceExtension(file_ext); 502 temp_file_path = temp_file_path.ReplaceExtension(file_ext);
503 503
504 AccObjectMatcher file_name_box(L"File name:", L"editable text"); 504 AccObjectMatcher file_name_box(L"File name:", L"editable text");
505 EXPECT_CALL(win_observer_mock, OnWindowOpen(_)) 505 EXPECT_CALL(win_observer_mock, OnWindowOpen(_))
506 .WillOnce(testing::DoAll( 506 .WillOnce(testing::DoAll(
507 AccSendCharMessage(file_name_box, L'a'), 507 AccSendCharMessage(file_name_box, L'a'),
508 AccSetValue(file_name_box, temp_file_path.value()), 508 AccSetValue(file_name_box, temp_file_path.value()),
509 AccDoDefaultAction(AccObjectMatcher(L"Save", L"push button")))); 509 AccDoDefaultAction(AccObjectMatcher(L"Save", L"push button"))));
510 510
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) 1104 EXPECT_CALL(acc_observer_, OnMenuPopup(_))
1105 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward"))); 1105 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward")));
1106 1106
1107 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3))) 1107 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3)))
1108 .WillOnce(CloseBrowserMock(&ie_mock_)); 1108 .WillOnce(CloseBrowserMock(&ie_mock_));
1109 1109
1110 LaunchIENavigateAndLoop(page1, kChromeFrameVeryLongNavigationTimeout); 1110 LaunchIENavigateAndLoop(page1, kChromeFrameVeryLongNavigationTimeout);
1111 } 1111 }
1112 1112
1113 } // namespace chrome_frame_test 1113 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | cloud_print/common/win/install_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698