| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 |
| 5 #include "base/bind.h" | 7 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 10 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 11 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "build/build_config.h" |
| 14 #include "chrome/browser/extensions/test_extension_system.h" | 18 #include "chrome/browser/extensions/test_extension_system.h" |
| 15 #include "chrome/browser/media_galleries/media_galleries_dialog_controller_test_
util.h" | 19 #include "chrome/browser/media_galleries/media_galleries_dialog_controller_test_
util.h" |
| 16 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 20 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 17 #include "chrome/browser/media_galleries/media_galleries_scan_result_controller.
h" | 21 #include "chrome/browser/media_galleries/media_galleries_scan_result_controller.
h" |
| 18 #include "chrome/browser/media_galleries/media_galleries_test_util.h" | 22 #include "chrome/browser/media_galleries/media_galleries_test_util.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
| 20 #include "components/storage_monitor/test_storage_monitor.h" | 24 #include "components/storage_monitor/test_storage_monitor.h" |
| 21 #include "content/public/test/test_browser_thread_bundle.h" | 25 #include "content/public/test/test_browser_thread_bundle.h" |
| 22 #include "extensions/browser/extension_system.h" | 26 #include "extensions/browser/extension_system.h" |
| 23 #include "extensions/common/extension.h" | 27 #include "extensions/common/extension.h" |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 MediaGalleriesDialogController::Entries results = | 417 MediaGalleriesDialogController::Entries results = |
| 414 controller()->GetSectionEntries(0); | 418 controller()->GetSectionEntries(0); |
| 415 ASSERT_EQ(5U, results.size()); | 419 ASSERT_EQ(5U, results.size()); |
| 416 EXPECT_EQ(first, results[0].pref_info.pref_id); | 420 EXPECT_EQ(first, results[0].pref_info.pref_id); |
| 417 EXPECT_EQ(second, results[1].pref_info.pref_id); | 421 EXPECT_EQ(second, results[1].pref_info.pref_id); |
| 418 EXPECT_EQ(third, results[2].pref_info.pref_id); | 422 EXPECT_EQ(third, results[2].pref_info.pref_id); |
| 419 EXPECT_EQ(fourth, results[3].pref_info.pref_id); | 423 EXPECT_EQ(fourth, results[3].pref_info.pref_id); |
| 420 EXPECT_EQ(fifth, results[4].pref_info.pref_id); | 424 EXPECT_EQ(fifth, results[4].pref_info.pref_id); |
| 421 controller()->DialogFinished(false); | 425 controller()->DialogFinished(false); |
| 422 } | 426 } |
| OLD | NEW |