OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/scoped_temp_dir.h" | 7 #include "base/scoped_temp_dir.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "chrome/browser/chrome_thread.h" | 10 #include "chrome/browser/chrome_thread.h" |
11 #include "chrome/browser/extensions/extension_prefs.h" | 11 #include "chrome/browser/extensions/extension_prefs.h" |
12 #include "chrome/browser/extensions/test_extension_prefs.h" | 12 #include "chrome/browser/extensions/test_extension_prefs.h" |
13 #include "chrome/browser/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/common/extensions/extension_constants.h" | 15 #include "chrome/common/extensions/extension_constants.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using base::Time; | 18 using base::Time; |
19 using base::TimeDelta; | 19 using base::TimeDelta; |
20 | 20 |
21 // Base class for tests. | 21 // Base class for tests. |
22 class ExtensionPrefsTest : public testing::Test { | 22 class ExtensionPrefsTest : public testing::Test { |
23 public: | 23 public: |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 EXPECT_EQ(Extension::DISABLED, | 327 EXPECT_EQ(Extension::DISABLED, |
328 prefs()->GetExtensionState(extension_->id())); | 328 prefs()->GetExtensionState(extension_->id())); |
329 EXPECT_TRUE(prefs()->IsIncognitoEnabled(extension_->id())); | 329 EXPECT_TRUE(prefs()->IsIncognitoEnabled(extension_->id())); |
330 } | 330 } |
331 | 331 |
332 private: | 332 private: |
333 scoped_ptr<Extension> extension_; | 333 scoped_ptr<Extension> extension_; |
334 }; | 334 }; |
335 TEST_F(ExtensionPrefsOnExtensionInstalled, | 335 TEST_F(ExtensionPrefsOnExtensionInstalled, |
336 ExtensionPrefsOnExtensionInstalled) {} | 336 ExtensionPrefsOnExtensionInstalled) {} |
OLD | NEW |