OLD | NEW |
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/stub_cros_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/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/memory/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/settings/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 void Fail() { | 19 void Fail() { |
20 // Should never be called. | 20 // Should never be called. |
21 FAIL(); | 21 FAIL(); |
22 } | 22 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 | 90 |
91 TEST_F(StubCrosSettingsProviderTest, PrepareTrustedValues) { | 91 TEST_F(StubCrosSettingsProviderTest, PrepareTrustedValues) { |
92 // Should return immediately without invoking the callback. | 92 // Should return immediately without invoking the callback. |
93 CrosSettingsProvider::TrustedStatus trusted = | 93 CrosSettingsProvider::TrustedStatus trusted = |
94 provider_->PrepareTrustedValues(base::Bind(&Fail)); | 94 provider_->PrepareTrustedValues(base::Bind(&Fail)); |
95 EXPECT_EQ(CrosSettingsProvider::TRUSTED, trusted); | 95 EXPECT_EQ(CrosSettingsProvider::TRUSTED, trusted); |
96 } | 96 } |
97 | 97 |
98 } // namespace chromeos | 98 } // namespace chromeos |
OLD | NEW |