OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/applescript/apple_event_util.h" | 5 #import "chrome/browser/ui/cocoa/applescript/apple_event_util.h" |
6 | 6 |
7 #include <CoreServices/CoreServices.h> | 7 #include <CoreServices/CoreServices.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 | 10 |
9 #include "base/basictypes.h" | |
10 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
11 #include "base/mac/scoped_aedesc.h" | 12 #include "base/mac/scoped_aedesc.h" |
| 13 #include "base/macros.h" |
12 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 17 #include "base/values.h" |
16 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 18 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
17 #include "testing/gtest_mac.h" | 19 #include "testing/gtest_mac.h" |
18 | 20 |
19 namespace { | 21 namespace { |
20 | 22 |
21 std::string FourCharToString(FourCharCode code) { | 23 std::string FourCharToString(FourCharCode code) { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 base::FundamentalValue value(b); | 254 base::FundamentalValue value(b); |
253 NSAppleEventDescriptor* descriptor = | 255 NSAppleEventDescriptor* descriptor = |
254 chrome::mac::ValueToAppleEventDescriptor(&value); | 256 chrome::mac::ValueToAppleEventDescriptor(&value); |
255 | 257 |
256 EXPECT_EQ(typeBoolean, [descriptor descriptorType]); | 258 EXPECT_EQ(typeBoolean, [descriptor descriptorType]); |
257 EXPECT_EQ(b, [descriptor booleanValue]); | 259 EXPECT_EQ(b, [descriptor booleanValue]); |
258 } | 260 } |
259 } | 261 } |
260 | 262 |
261 } // namespace | 263 } // namespace |
OLD | NEW |