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

Side by Side Diff: win8/delegate_execute/delegate_execute_util_unittest.cc

Issue 15995038: Use a direct include of utf_string_conversions.h in google_apis/, gpu/, ipc/, media/, ppapi/, print… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 7 years, 6 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 | « win8/delegate_execute/command_execute_impl.cc ('k') | win8/metro_driver/secondary_tile.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 "win8/delegate_execute/delegate_execute_util.h" 5 #include "win8/delegate_execute/delegate_execute_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 static const char kSomeSwitch[] = "some-switch"; 17 static const char kSomeSwitch[] = "some-switch";
18 18
19 } // namespace 19 } // namespace
20 20
21 TEST(DelegateExecuteUtil, CommandLineFromParametersTest) { 21 TEST(DelegateExecuteUtil, CommandLineFromParametersTest) {
22 CommandLine cl(CommandLine::NO_PROGRAM); 22 CommandLine cl(CommandLine::NO_PROGRAM);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 std::find(args.begin(), args.end(), string16(kOtherArgument))); 70 std::find(args.begin(), args.end(), string16(kOtherArgument)));
71 EXPECT_NE(args.end(), 71 EXPECT_NE(args.end(),
72 std::find(args.begin(), args.end(), string16(kSomeArgument))); 72 std::find(args.begin(), args.end(), string16(kSomeArgument)));
73 } 73 }
74 74
75 TEST(DelegateExecuteUtil, ParametersFromSwitchTest) { 75 TEST(DelegateExecuteUtil, ParametersFromSwitchTest) {
76 EXPECT_EQ(string16(), delegate_execute::ParametersFromSwitch(NULL)); 76 EXPECT_EQ(string16(), delegate_execute::ParametersFromSwitch(NULL));
77 EXPECT_EQ(string16(L"--some-switch"), 77 EXPECT_EQ(string16(L"--some-switch"),
78 delegate_execute::ParametersFromSwitch(kSomeSwitch)); 78 delegate_execute::ParametersFromSwitch(kSomeSwitch));
79 } 79 }
OLDNEW
« no previous file with comments | « win8/delegate_execute/command_execute_impl.cc ('k') | win8/metro_driver/secondary_tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698