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

Side by Side Diff: chrome/common/extensions/feature_switch_unittest.cc

Issue 47923018: Move FeatureSwitch to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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/common/extensions/feature_switch.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | 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) 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/common/extensions/feature_switch.h" 5 #include "extensions/common/feature_switch.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using extensions::FeatureSwitch; 11 using extensions::FeatureSwitch;
12 12
13 namespace { 13 namespace {
14 14
15 const char kSwitchName[] = "test-switch"; 15 const char kSwitchName[] = "test-switch";
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 FeatureSwitch::ScopedOverride override(&feature_, false); 125 FeatureSwitch::ScopedOverride override(&feature_, false);
126 EXPECT_FALSE(feature_.IsEnabled()); 126 EXPECT_FALSE(feature_.IsEnabled());
127 } 127 }
128 EXPECT_FALSE(feature_.IsEnabled()); 128 EXPECT_FALSE(feature_.IsEnabled());
129 } 129 }
130 130
131 TEST_F(FeatureSwitchEnabledTest, TrimSwitchValue) { 131 TEST_F(FeatureSwitchEnabledTest, TrimSwitchValue) {
132 command_line_.AppendSwitchASCII(kSwitchName, "\t\t 0 \n"); 132 command_line_.AppendSwitchASCII(kSwitchName, "\t\t 0 \n");
133 EXPECT_FALSE(feature_.IsEnabled()); 133 EXPECT_FALSE(feature_.IsEnabled());
134 } 134 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/feature_switch.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698