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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/stl_util.h" | 6 #include "base/stl_util.h" |
7 #include "chrome/browser/extensions/autoupdate_interceptor.h" | 7 #include "chrome/browser/extensions/autoupdate_interceptor.h" |
8 #include "chrome/browser/extensions/extension_browsertest.h" | 8 #include "chrome/browser/extensions/extension_browsertest.h" |
9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 std::string(kExtensionId) + ";http://localhost/autoupdate/manifest")); | 612 std::string(kExtensionId) + ";http://localhost/autoupdate/manifest")); |
613 } | 613 } |
614 ASSERT_TRUE(WaitForExtensionInstall()); | 614 ASSERT_TRUE(WaitForExtensionInstall()); |
615 ASSERT_EQ(size_before + 1, service->extensions()->size()); | 615 ASSERT_EQ(size_before + 1, service->extensions()->size()); |
616 extension = service->GetExtensionById(kExtensionId, false); | 616 extension = service->GetExtensionById(kExtensionId, false); |
617 ASSERT_TRUE(extension); | 617 ASSERT_TRUE(extension); |
618 EXPECT_EQ(Extension::EXTERNAL_POLICY_DOWNLOAD, extension->location()); | 618 EXPECT_EQ(Extension::EXTERNAL_POLICY_DOWNLOAD, extension->location()); |
619 EXPECT_TRUE(service->IsExtensionEnabled(kExtensionId)); | 619 EXPECT_TRUE(service->IsExtensionEnabled(kExtensionId)); |
620 EXPECT_TRUE(service->disabled_extensions()->is_empty()); | 620 EXPECT_TRUE(service->disabled_extensions()->is_empty()); |
621 } | 621 } |
OLD | NEW |