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

Side by Side Diff: chrome/installer/util/install_util_unittest.cc

Issue 7669061: Tommi: I need an owner review for the chrome frame changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/test/test_reg_util_win.h"
9 #include "base/win/registry.h" 10 #include "base/win/registry.h"
10 #include "chrome/installer/util/google_update_constants.h" 11 #include "chrome/installer/util/google_update_constants.h"
11 #include "chrome/installer/util/install_util.h" 12 #include "chrome/installer/util/install_util.h"
12 #include "chrome/installer/util/product_unittest.h" 13 #include "chrome/installer/util/product_unittest.h"
13 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
14 15
15 using base::win::RegKey; 16 using base::win::RegKey;
17 using reg_util::TempRegKeyOverride;
16 using ::testing::_; 18 using ::testing::_;
17 using ::testing::Return; 19 using ::testing::Return;
18 using ::testing::StrEq; 20 using ::testing::StrEq;
19 21
20 class MockRegistryValuePredicate : public InstallUtil::RegistryValuePredicate { 22 class MockRegistryValuePredicate : public InstallUtil::RegistryValuePredicate {
21 public: 23 public:
22 MOCK_CONST_METHOD1(Evaluate, bool(const std::wstring&)); 24 MOCK_CONST_METHOD1(Evaluate, bool(const std::wstring&));
23 }; 25 };
24 26
25 class InstallUtilTest : public TestWithTempDirAndDeleteTempOverrideKeys { 27 class InstallUtilTest : public TestWithTempDirAndDeleteTempOverrideKeys {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 334
333 TEST_F(InstallUtilTest, ValueEquals) { 335 TEST_F(InstallUtilTest, ValueEquals) {
334 InstallUtil::ValueEquals pred(L"howdy"); 336 InstallUtil::ValueEquals pred(L"howdy");
335 337
336 EXPECT_FALSE(pred.Evaluate(L"")); 338 EXPECT_FALSE(pred.Evaluate(L""));
337 EXPECT_FALSE(pred.Evaluate(L"Howdy")); 339 EXPECT_FALSE(pred.Evaluate(L"Howdy"));
338 EXPECT_FALSE(pred.Evaluate(L"howdy!")); 340 EXPECT_FALSE(pred.Evaluate(L"howdy!"));
339 EXPECT_FALSE(pred.Evaluate(L"!howdy")); 341 EXPECT_FALSE(pred.Evaluate(L"!howdy"));
340 EXPECT_TRUE(pred.Evaluate(L"howdy")); 342 EXPECT_TRUE(pred.Evaluate(L"howdy"));
341 } 343 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698