| 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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 12 #include "testing/gtest_mac.h" | 12 #include "testing/gtest_mac.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 class AppleEventUtilTest : public CocoaTest { }; | 16 class AppleEventUtilTest : public CocoaTest { }; |
| 17 | 17 |
| 18 struct TestCase { | 18 struct TestCase { |
| 19 const char* json_input; | 19 const char* json_input; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 base::FundamentalValue value(b); | 112 base::FundamentalValue value(b); |
| 113 NSAppleEventDescriptor* descriptor = | 113 NSAppleEventDescriptor* descriptor = |
| 114 chrome::mac::ValueToAppleEventDescriptor(&value); | 114 chrome::mac::ValueToAppleEventDescriptor(&value); |
| 115 | 115 |
| 116 EXPECT_EQ(typeBoolean, [descriptor descriptorType]); | 116 EXPECT_EQ(typeBoolean, [descriptor descriptorType]); |
| 117 EXPECT_EQ(b, [descriptor booleanValue]); | 117 EXPECT_EQ(b, [descriptor booleanValue]); |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace | 121 } // namespace |
| OLD | NEW |