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

Side by Side Diff: chrome_frame/test/navigation_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 <string> 5 #include <string>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/test/test_file_util.h" 8 #include "base/test/test_file_util.h"
9 #include "base/win/scoped_comptr.h" 9 #include "base/win/scoped_comptr.h"
10 #include "base/win/windows_version.h" 10 #include "base/win/windows_version.h"
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 .Times(testing::AnyNumber()); 837 .Times(testing::AnyNumber());
838 EXPECT_CALL(download_window_mock, OnLoadError(StrEq(tgt_url))) 838 EXPECT_CALL(download_window_mock, OnLoadError(StrEq(tgt_url)))
839 .Times(testing::AtMost(1)); 839 .Times(testing::AtMost(1));
840 EXPECT_CALL(download_window_mock, OnBeforeNavigate2(_, 840 EXPECT_CALL(download_window_mock, OnBeforeNavigate2(_,
841 testing::Field(&VARIANT::bstrVal, 841 testing::Field(&VARIANT::bstrVal,
842 StrEq(tgt_url)), _, _, _, _, _)); 842 StrEq(tgt_url)), _, _, _, _, _));
843 EXPECT_CALL(download_window_mock, OnLoad(false, _)); 843 EXPECT_CALL(download_window_mock, OnLoad(false, _));
844 EXPECT_CALL(download_window_mock, OnQuit()).Times(testing::AtMost(1)); 844 EXPECT_CALL(download_window_mock, OnQuit()).Times(testing::AtMost(1));
845 845
846 base::FilePath temp_file_path; 846 base::FilePath temp_file_path;
847 ASSERT_TRUE(file_util::CreateTemporaryFile(&temp_file_path)); 847 ASSERT_TRUE(base::CreateTemporaryFile(&temp_file_path));
848 file_util::DieFileDie(temp_file_path, false); 848 file_util::DieFileDie(temp_file_path, false);
849 849
850 temp_file_path = temp_file_path.ReplaceExtension(L"txt"); 850 temp_file_path = temp_file_path.ReplaceExtension(L"txt");
851 file_util::DieFileDie(temp_file_path, false); 851 file_util::DieFileDie(temp_file_path, false);
852 852
853 AccObjectMatcher file_name_box(L"File name:", L"editable text"); 853 AccObjectMatcher file_name_box(L"File name:", L"editable text");
854 854
855 HWND owner_window = NULL; 855 HWND owner_window = NULL;
856 856
857 EXPECT_CALL(save_dialog_watcher, OnWindowOpen(_)) 857 EXPECT_CALL(save_dialog_watcher, OnWindowOpen(_))
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 .WillOnce(CloseBrowserMock( 1290 .WillOnce(CloseBrowserMock(
1291 &no_referrer_target_opener_window_mock)); 1291 &no_referrer_target_opener_window_mock));
1292 1292
1293 EXPECT_CALL(no_referrer_target_opener_window_mock, OnQuit()) 1293 EXPECT_CALL(no_referrer_target_opener_window_mock, OnQuit())
1294 .WillOnce(CloseBrowserMock(&ie_mock_)); 1294 .WillOnce(CloseBrowserMock(&ie_mock_));
1295 1295
1296 LaunchIENavigateAndLoop(initial_url, kChromeFrameVeryLongNavigationTimeout); 1296 LaunchIENavigateAndLoop(initial_url, kChromeFrameVeryLongNavigationTimeout);
1297 } 1297 }
1298 1298
1299 } // namespace chrome_frame_test 1299 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/crash_reporting/minidump_test.cc ('k') | chrome_frame/test/net/fake_external_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698