Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm

Issue 19479003: Use a direct include of the message_loop header in chrome/browser/, part 10. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 5
6 #import <Foundation/Foundation.h> 6 #import <Foundation/Foundation.h>
7 #import <ImageCaptureCore/ImageCaptureCore.h> 7 #import <ImageCaptureCore/ImageCaptureCore.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/mac/foundation_util.h" 12 #include "base/mac/foundation_util.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "chrome/browser/storage_monitor/image_capture_device.h" 15 #include "chrome/browser/storage_monitor/image_capture_device.h"
16 #include "chrome/browser/storage_monitor/image_capture_device_manager.h" 16 #include "chrome/browser/storage_monitor/image_capture_device_manager.h"
17 #include "chrome/browser/storage_monitor/test_storage_monitor.h" 17 #include "chrome/browser/storage_monitor/test_storage_monitor.h"
18 #include "content/public/test/test_browser_thread.h" 18 #include "content/public/test/test_browser_thread.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 #if !defined(MAC_OS_X_VERSION_10_7) || \ 21 #if !defined(MAC_OS_X_VERSION_10_7) || \
22 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 22 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
23 23
24 @interface NSObject (ICCameraDeviceDelegateLionAPI) 24 @interface NSObject (ICCameraDeviceDelegateLionAPI)
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 message_loop_.RunUntilIdle(); 434 message_loop_.RunUntilIdle();
435 435
436 char file_contents[5]; 436 char file_contents[5];
437 ASSERT_EQ(4, file_util::ReadFile(temp_file, file_contents, 437 ASSERT_EQ(4, file_util::ReadFile(temp_file, file_contents,
438 strlen(kTestFileContents))); 438 strlen(kTestFileContents)));
439 EXPECT_EQ(kTestFileContents, 439 EXPECT_EQ(kTestFileContents,
440 std::string(file_contents, strlen(kTestFileContents))); 440 std::string(file_contents, strlen(kTestFileContents)));
441 441
442 [camera didRemoveDevice:device]; 442 [camera didRemoveDevice:device];
443 } 443 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698