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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "chrome/browser/themes/theme_properties.h" | 8 #include "chrome/browser/themes/theme_properties.h" |
9 #include "chrome/browser/themes/theme_service.h" | 9 #include "chrome/browser/themes/theme_service.h" |
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h" | 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h" |
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
13 #include "grit/theme_resources.h" | |
14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
18 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" |
19 #include "ui/base/theme_provider.h" | 18 #include "ui/base/theme_provider.h" |
20 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
21 | 20 |
22 using ::testing::_; | 21 using ::testing::_; |
23 using ::testing::DoAll; | 22 using ::testing::DoAll; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 *arg1 = ThemeProperties::NO_REPEAT; | 117 *arg1 = ThemeProperties::NO_REPEAT; |
119 return true; | 118 return true; |
120 } | 119 } |
121 | 120 |
122 ACTION(SetAlignLeft) { | 121 ACTION(SetAlignLeft) { |
123 *arg1 = ThemeProperties::ALIGN_LEFT; | 122 *arg1 = ThemeProperties::ALIGN_LEFT; |
124 return true; | 123 return true; |
125 } | 124 } |
126 | 125 |
127 // TODO(viettrungluu): write more unit tests, especially after my refactoring. | 126 // TODO(viettrungluu): write more unit tests, especially after my refactoring. |
OLD | NEW |