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

Side by Side Diff: chrome/browser/chromeos/stub_cros_settings_provider_unittest.cc

Issue 9018037: Redo r113722 - Add Pass(), which implements move semantics, to scoped_ptr, scoped_array.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 9 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 | 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 "chrome/browser/chromeos/stub_cros_settings_provider.h" 5 #include "chrome/browser/chromeos/stub_cros_settings_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/chromeos/cros_settings_names.h" 12 #include "chrome/browser/chromeos/cros_settings_names.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 namespace { 17 namespace {
18 18
19 const Value* kTrueValue = base::Value::CreateBooleanValue(true); 19 const Value* kTrueValue = base::Value::CreateBooleanValue(true);
20 const Value* kFalseValue = base::Value::CreateBooleanValue(false); 20 const Value* kFalseValue = base::Value::CreateBooleanValue(false);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 ExpectObservers(kReleaseChannel, 1); 90 ExpectObservers(kReleaseChannel, 1);
91 } 91 }
92 92
93 TEST_F(StubCrosSettingsProviderTest, GetTrusted) { 93 TEST_F(StubCrosSettingsProviderTest, GetTrusted) {
94 // Should return immediately without invoking the callback. 94 // Should return immediately without invoking the callback.
95 bool trusted = provider_->GetTrusted(kDeviceOwner, base::Bind(&Fail)); 95 bool trusted = provider_->GetTrusted(kDeviceOwner, base::Bind(&Fail));
96 EXPECT_TRUE(trusted); 96 EXPECT_TRUE(trusted);
97 } 97 }
98 98
99 } // namespace chromeos 99 } // namespace chromeos
OLDNEW
« no previous file with comments | « base/memory/scoped_ptr_unittest.cc ('k') | chrome/common/extensions/extension_manifests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698