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

Side by Side Diff: ui/shell_dialogs/select_file_dialog_win_unittest.cc

Issue 1550483002: Switch to standard integer types in ui/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-ui-events
Patch Set: Created 4 years, 12 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
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/snapshot/screenshot_grabber.h » ('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 <stddef.h>
6
7 #include "base/macros.h"
5 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
6 #include "ui/shell_dialogs/select_file_dialog.h" 9 #include "ui/shell_dialogs/select_file_dialog.h"
7 #include "ui/shell_dialogs/select_file_dialog_win.h" 10 #include "ui/shell_dialogs/select_file_dialog_win.h"
8 11
9 TEST(ShellDialogsWin, AppendExtensionIfNeeded) { 12 TEST(ShellDialogsWin, AppendExtensionIfNeeded) {
10 struct AppendExtensionTestCase { 13 struct AppendExtensionTestCase {
11 const wchar_t* filename; 14 const wchar_t* filename;
12 const wchar_t* filter_selected; 15 const wchar_t* filter_selected;
13 const wchar_t* suggested_ext; 16 const wchar_t* suggested_ext;
14 const wchar_t* expected_filename; 17 const wchar_t* expected_filename;
(...skipping 22 matching lines...) Expand all
37 }; 40 };
38 41
39 for (size_t i = 0; i < arraysize(test_cases); ++i) { 42 for (size_t i = 0; i < arraysize(test_cases); ++i) {
40 EXPECT_EQ(std::wstring(test_cases[i].expected_filename), 43 EXPECT_EQ(std::wstring(test_cases[i].expected_filename),
41 ui::AppendExtensionIfNeeded(test_cases[i].filename, 44 ui::AppendExtensionIfNeeded(test_cases[i].filename,
42 test_cases[i].filter_selected, 45 test_cases[i].filter_selected,
43 test_cases[i].suggested_ext)); 46 test_cases[i].suggested_ext));
44 } 47 }
45 } 48 }
46 49
OLDNEW
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/snapshot/screenshot_grabber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698