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/component_updater/flash_component_installer.h" | |
6 | |
7 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
9 #include "base/json/json_file_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | 10 #include "base/path_service.h" |
13 #include "base/version.h" | 11 #include "base/version.h" |
14 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/component_updater/flash_component_installer.h" |
15 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/common/pepper_flash.h" | 15 #include "chrome/common/pepper_flash.h" |
17 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
18 #include "ppapi/shared_impl/test_globals.h" | 17 #include "ppapi/shared_impl/test_globals.h" |
19 | 18 |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
21 | 20 |
22 using content::BrowserThread; | 21 using content::BrowserThread; |
23 | 22 |
24 namespace component_updater { | 23 namespace component_updater { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ASSERT_TRUE(root); | 79 ASSERT_TRUE(root); |
81 ASSERT_TRUE(root->IsType(base::Value::TYPE_DICTIONARY)); | 80 ASSERT_TRUE(root->IsType(base::Value::TYPE_DICTIONARY)); |
82 | 81 |
83 // This checks that the whole manifest is compatible. | 82 // This checks that the whole manifest is compatible. |
84 Version version; | 83 Version version; |
85 EXPECT_TRUE(chrome::CheckPepperFlashManifest(*root, &version)); | 84 EXPECT_TRUE(chrome::CheckPepperFlashManifest(*root, &version)); |
86 EXPECT_TRUE(version.IsValid()); | 85 EXPECT_TRUE(version.IsValid()); |
87 } | 86 } |
88 | 87 |
89 } // namespace component_updater | 88 } // namespace component_updater |
OLD | NEW |