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

Side by Side Diff: chrome/browser/chromeos/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 | « chrome/browser/chromeos/version_loader.cc ('k') | chrome/browser/ui/webui/help/help_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/version_loader.h"
6
7 #include <string>
8
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace chromeos {
12
13 typedef testing::Test VersionLoaderTest;
14
15 static const char kTest10[] = "vendor | FOO";
16 static const char kTest11[] = "firmware | FOO";
17 static const char kTest12[] = "firmware | FOO";
18 static const char kTest13[] = "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";
21
22 TEST_F(VersionLoaderTest, ParseFirmware) {
23 EXPECT_EQ("", version_loader::ParseFirmware(kTest10));
24 EXPECT_EQ("", version_loader::ParseFirmware(kTest11));
25 EXPECT_EQ("", version_loader::ParseFirmware(kTest12));
26 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest13));
27 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest14));
28 EXPECT_EQ("0.2.3.3", version_loader::ParseFirmware(kTest15));
29 }
30
31 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/version_loader.cc ('k') | chrome/browser/ui/webui/help/help_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698