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/extensions/settings/policy_value_store.h" | 5 #include "chrome/browser/extensions/settings/policy_value_store.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 Mock::VerifyAndClearExpectations(&observer_); | 208 Mock::VerifyAndClearExpectations(&observer_); |
209 | 209 |
210 // Don't notify when there aren't changes. | 210 // Don't notify when there aren't changes. |
211 EXPECT_CALL(observer_, OnSettingsChanged(_, _, _)).Times(0); | 211 EXPECT_CALL(observer_, OnSettingsChanged(_, _, _)).Times(0); |
212 store_->SetCurrentPolicy(policies, true); | 212 store_->SetCurrentPolicy(policies, true); |
213 loop_.RunUntilIdle(); | 213 loop_.RunUntilIdle(); |
214 Mock::VerifyAndClearExpectations(&observer_); | 214 Mock::VerifyAndClearExpectations(&observer_); |
215 } | 215 } |
216 | 216 |
217 } // namespace extensions | 217 } // namespace extensions |
OLD | NEW |