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

Side by Side Diff: base/win/registry_unittest.cc

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « base/win/registry.cc ('k') | base/win_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
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 "base/registry.h" 5 #include "base/win/registry.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 namespace base {
9 namespace win {
10
8 namespace { 11 namespace {
9 12
10 const wchar_t kRootKey[] = L"Base_Registry_Unittest"; 13 const wchar_t kRootKey[] = L"Base_Registry_Unittest";
11 14
12 class RegistryTest : public testing::Test { 15 class RegistryTest : public testing::Test {
13 public: 16 public:
14 RegistryTest() {} 17 RegistryTest() {}
15 18
16 protected: 19 protected:
17 virtual void SetUp() { 20 virtual void SetUp() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 std::wstring out_value; 53 std::wstring out_value;
51 EXPECT_TRUE(key.ReadValue(kName, &out_value)); 54 EXPECT_TRUE(key.ReadValue(kName, &out_value));
52 EXPECT_NE(out_value, L""); 55 EXPECT_NE(out_value, L"");
53 EXPECT_STREQ(out_value.c_str(), kValue); 56 EXPECT_STREQ(out_value.c_str(), kValue);
54 EXPECT_EQ(1U, key.ValueCount()); 57 EXPECT_EQ(1U, key.ValueCount());
55 EXPECT_TRUE(key.DeleteValue(kName)); 58 EXPECT_TRUE(key.DeleteValue(kName));
56 } 59 }
57 } 60 }
58 61
59 } // namespace 62 } // namespace
63
64 } // namespace win
65 } // namespace base
OLDNEW
« no previous file with comments | « base/win/registry.cc ('k') | base/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698