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

Side by Side Diff: chrome/installer/util/channel_info_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 "chrome/installer/util/channel_info.h" 5 #include "chrome/installer/util/channel_info.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/basictypes.h"
10 #include "chrome/installer/util/util_constants.h" 9 #include "chrome/installer/util/util_constants.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 using installer::ChannelInfo; 12 using installer::ChannelInfo;
14 13
15 namespace { 14 namespace {
16 15
17 const base::string16 kChannelStable(installer::kChromeChannelStable); 16 const base::string16 kChannelStable(installer::kChromeChannelStable);
18 const base::string16 kChannelBeta(installer::kChromeChannelBeta); 17 const base::string16 kChannelBeta(installer::kChromeChannelBeta);
19 const base::string16 kChannelDev(installer::kChromeChannelDev); 18 const base::string16 kChannelDev(installer::kChromeChannelDev);
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 ChannelInfo ci; 287 ChannelInfo ci;
289 288
290 ci.set_value(L""); 289 ci.set_value(L"");
291 EXPECT_FALSE(ci.RemoveAllModifiersAndSuffixes()); 290 EXPECT_FALSE(ci.RemoveAllModifiersAndSuffixes());
292 EXPECT_EQ(L"", ci.value()); 291 EXPECT_EQ(L"", ci.value());
293 292
294 ci.set_value(L"2.0-dev-multi-chrome-chromeframe-migrating"); 293 ci.set_value(L"2.0-dev-multi-chrome-chromeframe-migrating");
295 EXPECT_TRUE(ci.RemoveAllModifiersAndSuffixes()); 294 EXPECT_TRUE(ci.RemoveAllModifiersAndSuffixes());
296 EXPECT_EQ(L"2.0-dev", ci.value()); 295 EXPECT_EQ(L"2.0-dev", ci.value());
297 } 296 }
OLDNEW
« no previous file with comments | « chrome/installer/util/channel_info.cc ('k') | chrome/installer/util/chrome_binaries_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698