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

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

Issue 14643006: [chromeos] Remove dependencies of StatisticsProvider on chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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
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/browser/chromeos/system/name_value_pairs_parser.h" 5 #include "chromeos/system/name_value_pairs_parser.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 namespace system { 11 namespace system {
12 12
13 TEST(NameValuePairsParser, TestGetSingleValueFromTool) { 13 TEST(NameValuePairsParser, TestGetSingleValueFromTool) {
14 NameValuePairsParser::NameValueMap map; 14 NameValuePairsParser::NameValueMap map;
15 NameValuePairsParser parser(&map); 15 NameValuePairsParser parser(&map);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 EXPECT_EQ("1", map["cros_debug"]); 110 EXPECT_EQ("1", map["cros_debug"]);
111 EXPECT_EQ("(error)", map["dbg_reset"]); 111 EXPECT_EQ("(error)", map["dbg_reset"]);
112 EXPECT_EQ("some value", map["key#with_comment"]); 112 EXPECT_EQ("some value", map["key#with_comment"]);
113 EXPECT_EQ("", map["key"]); 113 EXPECT_EQ("", map["key"]);
114 EXPECT_EQ("LFS=0,0 LF=1784220250,2971030570 LK=9064076660,9342689170", 114 EXPECT_EQ("LFS=0,0 LF=1784220250,2971030570 LK=9064076660,9342689170",
115 map["vdat_timers"]); 115 map["vdat_timers"]);
116 } 116 }
117 117
118 } // namespace system 118 } // namespace system
119 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698