OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |