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

Side by Side Diff: chromeos/system/version_loader_unittest.cc

Issue 799683003: Move chromeos::version_loader to src/chromeos/system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chromeos/system/version_loader.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser/chromeos/version_loader.h" 5 #include "chromeos/system/version_loader.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 typedef testing::Test VersionLoaderTest; 13 typedef testing::Test VersionLoaderTest;
14 14
15 static const char kTest10[] = "vendor | FOO"; 15 static const char kTest10[] = "vendor | FOO";
16 static const char kTest11[] = "firmware | FOO"; 16 static const char kTest11[] = "firmware | FOO";
17 static const char kTest12[] = "firmware | FOO"; 17 static const char kTest12[] = "firmware | FOO";
18 static const char kTest13[] = "version | 0.2.3.3"; 18 static const char kTest13[] = "version | 0.2.3.3";
19 static const char kTest14[] = "version | 0.2.3.3"; 19 static const char kTest14[] = "version | 0.2.3.3";
20 static const char kTest15[] = "version 0.2.3.3"; 20 static const char kTest15[] = "version 0.2.3.3";
21 21
22 TEST_F(VersionLoaderTest, ParseFirmware) { 22 TEST_F(VersionLoaderTest, ParseFirmware) {
23 EXPECT_EQ("", version_loader::ParseFirmware(kTest10)); 23 EXPECT_EQ("", version_loader::ParseFirmware(kTest10));
24 EXPECT_EQ("", version_loader::ParseFirmware(kTest11)); 24 EXPECT_EQ("", version_loader::ParseFirmware(kTest11));
25 EXPECT_EQ("", version_loader::ParseFirmware(kTest12)); 25 EXPECT_EQ("", version_loader::ParseFirmware(kTest12));
26 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest13)); 26 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest13));
27 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest14)); 27 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest14));
28 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest15)); 28 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest15));
29 } 29 }
30 30
31 } // namespace chromeos 31 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/system/version_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698